From: imre dot koloszar at gmail dot com Operating system: Windows XP, SP2 PHP version: 5.1.6 PHP Bug Type: Reproducible crash Bug description: $doc = new DOMDocument() crash
Description: ------------ $doc = new DOMDocument('1.0','utf-8') crash Reproduce code: --------------- There is a short example in the help which crashes the whole PHP processing at the first row. Example 1. Creating a Document <?php $doc = DOMDocument::loadHTML("<html><body>Test<br></body></html>"); echo $doc->saveHTML(); $doc = new DOMDocument(); $doc->loadHTML("<html><body>Test<br></body></html>"); echo $doc->saveHTML(); ?> Expected result: ---------------- just work properly Actual result: -------------- I have used the PHP 5.1.6 release (installed with compiled Windows Binaries) with Apache 2.2.3, debugging with Komodo 3.5. At the mentioned line the debug process was broken. -- Edit bug report at http://bugs.php.net/?id=38663&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38663&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38663&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38663&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38663&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38663&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38663&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38663&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38663&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38663&r=support Expected behavior: http://bugs.php.net/fix.php?id=38663&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38663&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38663&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38663&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38663&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38663&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38663&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38663&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38663&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38663&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38663&r=mysqlcfg