#27000 [Opn->Fbk]: Seg Fault when trying to set a value

From: Date: Wed, 21 Jan 2004 22:43:52 +0000
Subject: #27000 [Opn->Fbk]: Seg Fault when trying to set a value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53731@lists.php.net to get a copy of this message
ID: 27000 Updated by: derick@php.net Reported By: dylan dot egan at optusnet dot com dot au -Status: Open +Status: Feedback Bug Type: XML related Operating System: Linux PHP Version: 5CVS-2004-01-21 (dev) New Comment: Can you please also add the output from "bt" from the GDB command line? (That will generate the backtrace) Previous Comments: ------------------------------------------------------------------------ [2004-01-21 15:46:09] dylan dot egan at optusnet dot com dot au Description: ------------ Trying to set a value in a loaded xml file, it returns a seg fault in the log. So I ran gdb. Reproduce code: --------------- $s = simplexml_load_file('security.xml'); // $s->security[2]->id = 20 $s->security[2]->id = 21; Expected result: ---------------- It should set that value to 21 from 20. Actual result: -------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1077749632 (LWP 29325)] zend_assign_obj_handler (execute_data=0xbfffd170, op_array=0x40832c04) at /usr/local/src/php5-200401211830/Zend/zend_execute.c:64 64 z->refcount--; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27000&edit=1

« previous php.bugs (#53731) next »