note 67909 added to function.ob-start
| From: | guenther dot stadler at gmx dot net | Date: | Thu, 06 Jul 2006 09:32:59 +0000 |
| Subject: | note 67909 added to function.ob-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-114490@lists.php.net to get a copy of this message | ||
To all those out there who like using nested ob_start()s:
I just had an interesting thing of a parse-error (or a not-defined function name) not being put out
to the browser...
I had a snippet like that:
ob_start();
include('foo.inc.php');
$content = ob_get_contents();
ob_end_clean();
And the file foo.inc.php called a function that did not exist.
The problem was that PHP did not stop and give me an error message, but instead continued after the
include-line.
I don't know if thats a bug or a feature, but it took me almost an hour to find out that PHP
had just silently skipped an error message.
Greets, Günsch.
----
Server IP: 192.35.244.50
Probable Submitter: 62.116.5.43 (proxied: 1.1 EYEBOX2K)
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.ob-start.php
Edit -- http://master.php.net/note/edit/67909
Del: integrated -- http://master.php.net/note/delete/67909/integrated
Del: useless -- http://master.php.net/note/delete/67909/useless
Del: bad code -- http://master.php.net/note/delete/67909/bad+code
Del: spam -- http://master.php.net/note/delete/67909/spam
Del: non-english -- http://master.php.net/note/delete/67909/non-english
Del: in docs -- http://master.php.net/note/delete/67909/in+docs
Del: other reasons-- http://master.php.net/note/delete/67909
Reject -- http://master.php.net/note/reject/67909
Search -- http://master.php.net/manage/user-notes.php