From: [EMAIL PROTECTED] Operating system: linux (debian) PHP version: 4.2.0 PHP Bug Type: Reproducible crash Bug description: casting GLOBALS to object causes segfault.
simple script <? $t = (object) $GLOBALS; ?> result = segfault. Workaround (dont do it!) Backtrace Program received signal SIGSEGV, Segmentation fault. 0x4014dd4d in free () from /lib/libc.so.6 (gdb) bt #0 0x4014dd4d in free () from /lib/libc.so.6 #1 0x4014dc13 in free () from /lib/libc.so.6 #2 0x80c51b0 in shutdown_memory_manager (silent=0, clean_cache=0) at zend_alloc.c:484 #3 0x805d3ee in php_request_shutdown (dummy=0x0) at main.c:794 #4 0x805c190 in main (argc=2, argv=0xbffffc54) at cgi_main.c:834 #5 0x400f86cf in __libc_start_main () from /lib/libc.so. -- Edit bug report at http://bugs.php.net/?id=17000&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17000&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17000&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17000&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17000&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17000&r=support Expected behavior: http://bugs.php.net/fix.php?id=17000&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17000&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17000&r=submittedtwice