note 108853 added to function.ob-start
| From: | mchojrin at gmail dot com | Date: | Wed, 30 May 2012 14:23:47 +0000 |
| Subject: | note 108853 added to function.ob-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-188295@lists.php.net to get a copy of this message | ||
Just a word of warning to those like myself who are upgrading from 5.3. I have a piece of code that
used to work:
if ( !ob_start( !DEBUGMODE ? 'ob_gzhandler' : '' ) ) {
ob_start();
}
Which is not working anymore (I get an error like: Warning: ob_start(): function '' not
found or invalid function name).
It's easily fixed though, just changed the '' to a null, like this:
if ( !ob_start( !DEBUGMODE ? 'ob_gzhandler' : null ) ) {
ob_start();
}
Which preserves the code intention but works :)
----
Server IP: 201.216.232.3
Probable Submitter: 200.32.121.66
----
Manual Page -- http://www.php.net/manual/en/function.ob-start.php
Edit -- https://master.php.net/note/edit/108853
Del: integrated -- https://master.php.net/note/delete/108853/integrated
Del: useless -- https://master.php.net/note/delete/108853/useless
Del: bad code -- https://master.php.net/note/delete/108853/bad+code
Del: spam -- https://master.php.net/note/delete/108853/spam
Del: non-english -- https://master.php.net/note/delete/108853/non-english
Del: in docs -- https://master.php.net/note/delete/108853/in+docs
Del: other reasons-- https://master.php.net/note/delete/108853
Reject -- https://master.php.net/note/reject/108853
Search -- https://master.php.net/manage/user-notes.php