I was looking at these functions (ob_get_flush & ob_end_flush) and they seem
equal.
Can anybody check it, please?

http://lxr.php.net/source/php-src/main/output.c#836  get_flush
http://lxr.php.net/source/php-src/main/output.c#792 end_flush

As you can see in the implementation, ob_end_flush calls php_end_ob_buffer(0, 0 TSRMLS_CC) and returns TRUE, while ob_get_flush calls php_end_ob_buffer(1, 0 TSRMLS_CC), thus returning the value of the output buffer. So there is not much difference, but as the names suggest, "end" just closes the buffer with flushing, while "get" returns the buffer and flushes at the same time.


Goba

Reply via email to