note 124936 added to function.ob-end-clean
| From: | baklanoid at gmail dot com | Date: | Thu, 23 Apr 2020 09:34:12 +0000 |
| Subject: | note 124936 added to function.ob-end-clean | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-214521@lists.php.net to get a copy of this message | ||
If there is no confidence about output buffering (enabled or not),
you may try these guards:
<?php
while (ob_get_level() !== 0) {
ob_end_clean();
}
// or
while (ob_get_length() !== false) {
ob_end_clean();
}
?>
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.195 (proxied: 185.113.37.206)
----
Manual Page -- http://php.net/manual/en/function.ob-end-clean.php
Edit -- https://master.php.net/note/edit/124936
Del: integrated -- https://master.php.net/note/delete/124936/integrated
Del: useless -- https://master.php.net/note/delete/124936/useless
Del: bad code -- https://master.php.net/note/delete/124936/bad+code
Del: spam -- https://master.php.net/note/delete/124936/spam
Del: non-english -- https://master.php.net/note/delete/124936/non-english
Del: in docs -- https://master.php.net/note/delete/124936/in+docs
Del: other reasons-- https://master.php.net/note/delete/124936
Reject -- https://master.php.net/note/reject/124936
Search -- https://master.php.net/manage/user-notes.php