AlexT
Well-known member
Got this notice error in my log files (XF 1.2 beta 3):
It is caused by calling ob_end_clean() even if there is not a buffer.
Not sure if this workaround fix is still needed for older PHP versions, but if it is, perhaps it could be enhanced with this line of code:
This will clean output buffering if and only if it's already started.
Code:
Application.php(186) ob_end_clean(): failed to delete buffer. No buffer to delete E_NOTICE
PHP:
// see http://bugs.php.net/bug.php?id=36514
if (!@ini_get('output_handler')) while (@ob_end_clean());
It is caused by calling ob_end_clean() even if there is not a buffer.
Not sure if this workaround fix is still needed for older PHP versions, but if it is, perhaps it could be enhanced with this line of code:
PHP:
if (!@ini_get('output_handler')) while (ob_get_level() > 0) { ob_end_clean(); };
This will clean output buffering if and only if it's already started.
Last edited: