PHP 4.0 Bug #2159: Crash with objects nested into array and global statement
| From: | christophe dot massiot at mail dot dotcom dot fr | Date: | Thu, 26 Aug 1999 06:57:51 +0000 |
| Subject: | PHP 4.0 Bug #2159: Crash with objects nested into array and global statement | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10210@lists.php.net to get a copy of this message | ||
From: christophe.massiot@mail.dotcom.fr
Operating system: LinuxPPC R5/Linux 2.2.10
PHP version: 4.0 Latest CVS (26/08/1999)
PHP Bug Type: Reproduceable crash
Bug description: Crash with objects nested into array and global statement
The following script :
<?
global $tata;
class foobar {
function make_dict() { }
}
$objects["toto"] = new foobar;
$objects["toto"]->make_dict();
?>
crashes with the following backtrace :
Program received signal SIGSEGV, Segmentation fault.
zend_llist_add_element (l=0x8, element=0x7ffff868) at zend_llist.c:36
36 zend_llist_element *tmp = pemalloc(sizeof(zend_llist_element)+l->size-1, l->persistent);
(gdb) bt
#0 zend_llist_add_element (l=0x8, element=0x7ffff868) at zend_llist.c:36
#1 0x18371cc in execute (op_array=0x18fc0f0) at zend_execute.c:1379
#2 0x180eefc in php_execute_script (primary_file=0x7ffff928) at main.c:1153
#3 0x1815c90 in main (argc=2, argv=0x7ffff9e4) at cgi_main.c:448
#4 0x13d37d4 in __libc_start_main ()
at ../sysdeps/powerpc/elf/libc-start.c:106