#19440 [NEW]: ob_clean and ob_end_clean are broken

From: Date: Mon, 16 Sep 2002 18:02:06 +0000
Subject: #19440 [NEW]: ob_clean and ob_end_clean are broken
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19480@lists.php.net to get a copy of this message
From: madeinlisboa@yahoo.com Operating system: W2K PHP version: 4.2.3 PHP Bug Type: Output Control Bug description: ob_clean and ob_end_clean are broken When any of these 2 functions are called, I get no output or the output is garbled. eg (I run this at the end of printable pages, to remove form fields, etc... Get buffer, change it, then print it): $search = Array( "|<script[^>]*?>.*?</script>|si", "|<a href=\"#topo\">.*?</a>|si", "|<form[^>]*?>.*?</form>|si", "|<a[^>]*?>|si", "|</a\s*>|si", ); $contents = ob_get_contents(); // gets output buffer, empties it and print without forms ob_clean(); echo preg_replace($search, '', $contents); -- Edit bug report at http://bugs.php.net/?id=19440&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19440&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19440&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19440&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19440&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19440&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19440&r=support Expected behavior: http://bugs.php.net/fix.php?id=19440&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19440&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19440&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19440&r=globals

« previous php.bugs (#19480) next »