note 115830 added to function.ob-get-contents
| From: | ipfound at gmail dot com | Date: | Wed, 01 Oct 2014 07:13:39 +0000 |
| Subject: | note 115830 added to function.ob-get-contents | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200554@lists.php.net to get a copy of this message | ||
The ob_get_contents() function has different return behaivor in PHP 5.3.x and PHP 5.5.x. Take a look
at very simple example for PHP 5.3
<?php
var_dump(ob_get_contents());
?>
Output: bool(false)
but in PHP 5.5.x, the same php code will return:
Output: string (0) ""
Actually, we can use type regulation - intval(ob_get_contents()), for cheking On/Off output
buffering, but it lays the possible problems in the future.
----
Server IP: 193.19.243.212
Probable Submitter: 193.19.243.212 (proxied: 46.118.170.184)
----
Manual Page -- http://php.net/manual/en/function.ob-get-contents.php
Edit -- https://master.php.net/note/edit/115830
Del: integrated -- https://master.php.net/note/delete/115830/integrated
Del: useless -- https://master.php.net/note/delete/115830/useless
Del: bad code -- https://master.php.net/note/delete/115830/bad+code
Del: spam -- https://master.php.net/note/delete/115830/spam
Del: non-english -- https://master.php.net/note/delete/115830/non-english
Del: in docs -- https://master.php.net/note/delete/115830/in+docs
Del: other reasons-- https://master.php.net/note/delete/115830
Reject -- https://master.php.net/note/reject/115830
Search -- https://master.php.net/manage/user-notes.php