ID: 38438
Updated by: [EMAIL PROTECTED]
Reported By: gmblar at gmail dot com
-Status: Open
+Status: Verified
Bug Type: DOM XML related
-Operating System: Windows XP SP2
+Operating System: *
-PHP Version: 5.1.4
+PHP Version: 5CVS
New Comment:
Confirmed on Linux with 5.2 cvs:
Program received signal SIGSEGV, Segmentation fault.
0x080dcdb0 in dom_object_get_node (obj=0x0)
at /dat/dev/php/php-5.2dev/ext/dom/php_dom.c:231
231 if (obj->ptr != NULL) {
(gdb) bt
#0 0x080dcdb0 in dom_object_get_node (obj=0x0)
at /dat/dev/php/php-5.2dev/ext/dom/php_dom.c:231
#1 0x080f1801 in zif_dom_nodelist_item (ht=1,
return_value=0xb78d3e2c,
return_value_ptr=0x0, this_ptr=0xb78d36f4, return_value_used=1)
at /dat/dev/php/php-5.2dev/ext/dom/nodelist.c:138
#2 0x083c54c3 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfdc0294)
at zend_vm_execute.h:200
#3 0x083c643c in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbfdc0294)
at zend_vm_execute.h:322
#4 0x083c5026 in execute (op_array=0xb78d3728) at
zend_vm_execute.h:92
#5 0x083a27c3 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /dat/dev/php/php-5.2dev/Zend/zend.c:1095
#6 0x083526a8 in php_execute_script (primary_file=0xbfdc268c)
at /dat/dev/php/php-5.2dev/main/main.c:1759
#7 0x0841b1b3 in main (argc=1, argv=0xbfdc27b4)
at /dat/dev/php/php-5.2dev/sapi/cli/php_cli.c:1097
Previous Comments:
------------------------------------------------------------------------
[2006-08-12 22:50:48] gmblar at gmail dot com
Description:
------------
Segmentation fault (core dumped)
Reproduce code:
---------------
<?php
$list = new DOMNodeList();
var_dump($list->item(0));
?>
Expected result:
----------------
NULL
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38438&edit=1