|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-08-31 06:43 UTC] imre dot koloszar at gmail dot com
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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 02:00:01 2025 UTC |
Sorry, I'm quite new in PHP debugging. So this is the correct error message, I received in the log file after running this short php code. Could you help me, what does this 'zend.ze1_compatibility_mode' mean, and what shell I do to solve this problem? Thanks. -------------------------------------- ?php $doc = new DOMDocument('1.0'); ?> -------------------------------------- [01-Sep-2006 08:45:25] PHP Stack trace: [01-Sep-2006 08:45:25] PHP 1. {main}() E:\WORK2\PHP\helloworld\___dom.php:0 [01-Sep-2006 08:45:25] PHP Fatal error: Cannot clone object of class DOMDocument due to 'zend.ze1_compatibility_mode' in E:\WORK2\PHP\helloworld\___dom.php on line 2