ID:               27000
 Updated by:       [EMAIL PROTECTED]
 Reported By:      dylan dot egan at optusnet dot com dot au
-Status:           Open
+Status:           Closed
 Bug Type:         XML related
 Operating System: Linux
 PHP Version:      5CVS-2004-01-21 (dev)
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2004-01-21 18:46:17] dylan dot egan at optusnet dot com dot au

#0  zend_assign_obj_handler (execute_data=0xbfffd170,
op_array=0x4083253c)
    at /usr/local/src/php5-200401211830/Zend/zend_execute.c:64
#1  0x40619e64 in execute (op_array=0x4083253c)
    at /usr/local/src/php5-200401211830/Zend/zend_execute.c:1264
#2  0x405fc76e in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
    at /usr/local/src/php5-200401211830/Zend/zend.c:1051
#3  0x405c5cce in php_execute_script (primary_file=0xbffff410)
    at /usr/local/src/php5-200401211830/main/main.c:1642
#4  0x40624da3 in php_handler (r=0x81bd670)
    at
/usr/local/src/php5-200401211830/sapi/apache2handler/sapi_apache2.c:531
#5  0x08068700 in ap_invoke_handler ()

------------------------------------------------------------------------

[2004-01-21 17:43:52] [EMAIL PROTECTED]

Can you please also add the output from "bt" from the GDB command line?
(That will generate the backtrace)

------------------------------------------------------------------------

[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

Reply via email to