note 42353 added to function.ob-clean
| From: | eclipxeemailcsoto/sia-solution/com at rn2 dot php dot net | Date: | Thu, 13 May 2004 07:49:30 +0000 |
| Subject: | note 42353 added to function.ob-clean | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69549@lists.php.net to get a copy of this message | ||
I used to implement ob_clean() function but one application give me a peculiar error:
After use ob_clean() it automaticlly adds the string "DIV>" to the buffer, another
peculiar thing was that the string only was added on the first run, If I reload the page or check
another page the error disappears.
I don't know explicitly why or when it do that but I replace the function with ob_get_clean()
and the hole error disappear. No more garbage on my HTML response.
No, I'm not crazy that was the only change I made to my application, I'm totally sure
about it.
----
Manual Page -- http://www.php.net/manual/en/function.ob-clean.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42353
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42353&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42353&report=yes
Search -- http://master.php.net/manage/user-notes.php