note 113881 added to function.ob-clean

From: Date: Thu, 12 Dec 2013 20:59:24 +0000
Subject: note 113881 added to function.ob-clean
Groups: php.notes 
Request: Send a blank email to php-notes+get-197918@lists.php.net to get a copy of this message
@cornel: It's easy enough to say "Don't do that" when you think you've got the person right in front of you. But one doesn't always have the original coder, or even one of a dozen of the original coders. Are you really suggesting that it would be wrong to use this function as a band-aid when the alternative may be looking through hundreds of source files you didn't write for errors you didn't introduce? To your point, though, it is (or should be) a commonly accepted best practice to not put closing PHP tags at the end of files. When, however, enforcing that would take a time machine, it's appropriate to use ob_clean() as a band-aid to make dynamically generated images work as expected. ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/function.ob-clean.php Edit -- https://master.php.net/note/edit/113881 Del: integrated -- https://master.php.net/note/delete/113881/integrated Del: useless -- https://master.php.net/note/delete/113881/useless Del: bad code -- https://master.php.net/note/delete/113881/bad+code Del: spam -- https://master.php.net/note/delete/113881/spam Del: non-english -- https://master.php.net/note/delete/113881/non-english Del: in docs -- https://master.php.net/note/delete/113881/in+docs Del: other reasons-- https://master.php.net/note/delete/113881 Reject -- https://master.php.net/note/reject/113881 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197918) next »