Bug #51936 [Asn->Csd]: Crash with clone xmlreader
Edit report at https://bugs.php.net/bug.php?id=51936&edit=1
ID: 51936
Updated by: mike@php.net
Reported by: Keisial at gmail dot com
Summary: Crash with clone xmlreader
-Status: Assigned
+Status: Closed
Type: Bug
Package: XML Reader
PHP Version: 5.3.2
Assigned To: rrichards
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of mike
Revision: http://git.php.net/?p=php-src.git;a=commit;h=dc3d360a0ff8c17cb2ce2030813d30b578249be9
Log: typo: really fix bug #51936 Crash with clone xmlreader
Previous Comments:
------------------------------------------------------------------------
[2010-05-27 20:20:27] johannes@php.net
#0 0xfffffd7ffb7e92c4 in xmlTextReaderNext () from /lib/64/libxml2.so.2
#1 0x00000000008661f9 in zim_xmlreader_next (ht=0, return_value=0xd77f88,
return_value_ptr=0x0, this_ptr=0xd79b48, return_value_used=0)
at
/export/home/johannes/src/php/src/php/php-src/branches/PHP_5_3/ext/xmlreader/php_xmlreader.c:842
#2 0x000000000093b02e in zend_do_fcall_common_helper_SPEC (
execute_data=0x1025500)
at /export/home/johannes/src/php/src/php/php-src/branches/PHP_5_3/Zend/zend_vm_execute.h:313
#3 0x000000000093bc9d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (
execute_data=0x1025500)
at /export/home/johannes/src/php/src/php/php-src/branches/PHP_5_3/Zend/zend_vm_execute.h:418
#4 0x000000000093a31d in execute (op_array=0xd77c68)
at /export/home/johannes/src/php/src/php/php-src/branches/PHP_5_3/Zend/zend_vm_execute.h:104
#5 0x000000000090c86a in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /export/home/johannes/src/php/src/php/php-src/branches/PHP_5_3/Zend/zend.c:1194
#6 0x00000000008a0c6c in php_execute_script (primary_file=0xfffffd7fffdff690)
at /export/home/johannes/src/php/src/php/php-src/branches/PHP_5_3/main/main.c:2233
#7 0x00000000009e0fe6 in main (argc=1, argv=0xfffffd7fffdff768)
at /export/home/johannes/src/php/src/php/php-src/branches/PHP_5_3/sapi/cli/php_cli.c:1192
------------------------------------------------------------------------
[2010-05-27 20:02:39] Keisial at gmail dot com
Description:
------------
Trying to use a cloned xmlreader results in a crash (original one can be used fine).
php 5.3.2
libxml2 2.7.7-1
Test script:
---------------
<?php
$xmlreader = new XMLReader();
$xmlreader->xml("<a><b/></a>");
$xmlreader->next();
$xmlreader2 = clone $xmlreader;
$xmlreader2->next();
Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault in xmlTextReaderNext__internal_alias ()
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=51936&edit=1
Thread (3 messages)