#35133 [NEW]: Strange extra characters appears on page

From: Date: Sun, 06 Nov 2005 23:52:44 +0000
Subject: #35133 [NEW]: Strange extra characters appears on page
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-87730@lists.php.net to get a copy of this message
From: sverker at fridqvist dot se Operating system: Linux lhotse 2.6.12-1-386 PHP version: 5.0.5 PHP Bug Type: Unknown/Other Function Bug description: Strange extra characters appears on page Description: ------------ Three extra characters () are inserted at the top of my page. If I start the main page with ob_end_clean() these characters do not appear. It seems to me that a bug causes PHP to generate and send the extra characters to Apache. The characters certainly have not been coded by me. I have not been able to generate the problem through other PHP code. The page is generated by PHP5 code distributed on > 10 classes in individual files that are required as needed through __autoload(). The HTML is generated using DOMImplementation, and output in one of the required files through this code: header('Content-Type: text/html; charset=iso-8859-1'); echo $doc->saveXML(); This is the one single echo statement in the code. Reproduce code: --------------- I am reluctant to expose the complete code, since it would reveal connection info for my database that I prefer to keep for myself, and the code will not work without the DB anyway. If you are interested in following up this, I am willing to do some experiments to reproduce the error with other code. Expected result: ---------------- I expect the page to look this way: http://sverker.fridqvist.se/test/index.php5 Actual result: -------------- Without the ob_end_clean() at the top of the code the page will contain the extra characters: http://sverker.fridqvist.se/test/indexError.php5 The extra characters are visible with Mac OS X browser Camino 0.9a1, but not with Safari and Opera. The W3C validator reports the characters as an error. -- Edit bug report at http://bugs.php.net/?id=35133&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35133&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35133&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35133&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35133&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35133&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35133&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35133&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35133&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35133&r=support Expected behavior: http://bugs.php.net/fix.php?id=35133&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35133&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35133&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35133&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35133&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35133&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35133&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35133&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35133&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35133&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35133&r=mysqlcfg

« previous php.bugs (#87730) next »