|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-05-27 20:02 UTC] 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 ()
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 10:00:01 2025 UTC |
#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