#38663 [Fbk->Opn]: $doc = new DOMDocument() crash
| From: | imre dot koloszar at gmail dot com | Date: | Fri, 01 Sep 2006 06:54:09 +0000 |
| Subject: | #38663 [Fbk->Opn]: $doc = new DOMDocument() crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-101604@lists.php.net to get a copy of this message | ||
ID: 38663
User updated by: imre dot koloszar at gmail dot com
Reported By: imre dot koloszar at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: Windows XP, SP2
PHP Version: 5.1.6
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2006-08-31 08:25:51] tony2001@php.net
Works perfectly fine here.
>At the mentioned line the debug process was broken.
What does this mean and why do you call this "crash"?
------------------------------------------------------------------------
[2006-08-31 06:43:24] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38663&edit=1