Bug #32852 [Com]: Crash with singleton and __destruct when zend.ze1_compatibility_mode = On
| From: | inspiringland17 at gmail dot com | Date: | Mon, 04 Jan 2021 17:26:03 +0000 |
| Subject: | Bug #32852 [Com]: Crash with singleton and __destruct when zend.ze1_compatibility_mode = On | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231364@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=32852&edit=1
ID: 32852
Comment by: inspiringland17 at gmail dot com
Reported by: cox at idecnet dot com
Summary: Crash with singleton and __destruct when
zend.ze1_compatibility_mode = On
Status: No Feedback
Type: Bug
Package: Scripting Engine problem
Operating System: *
PHP Version: 5CVS-2005-04-29
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
I faced this issue a long time ago on
https://www.intlum.com/
Previous Comments:
------------------------------------------------------------------------
[2005-07-11 01:00:04] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2005-07-03 12:44:20] dmitry@php.net
I assume this is xdebug bug. I don't see any problems without it.
------------------------------------------------------------------------
[2005-07-01 11:42:49] sniper@php.net
Now I get this crash with Zend/tests/bug32852.phpt:
(gdb) bt
#0 add_stack_frame (zdata=0xbfff8440, op_array=0x99d121c, type=1) at
/usr/src/xdebug-cvs/xdebug.c:885
#1 0x00f805bd in xdebug_execute (op_array=0x99d121c) at /usr/src/xdebug-cvs/xdebug.c:1123
#2 0x0818a75a in zend_call_function (fci=0xbfff8540, fci_cache=0xbfff8500) at
/usr/src/php5/Zend/zend_execute_API.c:855
#3 0x081a6c40 in zend_call_method (object_pp=0xbfff85ec, obj_ce=0x99d0874, fn_proxy=0x99d094c,
function_name=0x825a5bb "__destruct", function_name_len=10,
retval_ptr_ptr=0x0, param_count=0, arg1=0x0, arg2=0x0) at
/usr/src/php5/Zend/zend_interfaces.c:87
#4 0x081abc4f in zend_objects_destroy_object (object=0x99d004c, handle=1) at
/usr/src/php5/Zend/zend_objects.c:78
#5 0x081ae6d8 in zend_objects_store_del_ref (zobject=0x99d000c) at
/usr/src/php5/Zend/zend_objects_API.c:155
#6 0x08193dd8 in _zval_dtor_func (zvalue=0x99d000c, __zend_filename=0x8257204
"/usr/src/php5/Zend/zend_variables.h", __zend_lineno=35)
at /usr/src/php5/Zend/zend_variables.c:52
#7 0x08188d11 in _zval_dtor (zvalue=0x99d000c, __zend_filename=0x82571b0
"/usr/src/php5/Zend/zend_execute_API.c", __zend_lineno=386) at zend_variables.h:35
#8 0x08188ec4 in _zval_ptr_dtor (zval_ptr=0xbfff875c, __zend_filename=0x825bf80
"/usr/src/php5/Zend/zend_vm_execute.h", __zend_lineno=222)
at /usr/src/php5/Zend/zend_execute_API.c:386
#9 0x081bbbe2 in zend_do_fcall_common_helper_SPEC (execute_data=0xbfff8780) at
zend_vm_execute.h:222
#10 0x081bc223 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0xbfff8780) at
zend_vm_execute.h:299
#11 0x081bb69b in execute (op_array=0x99cb15c) at zend_vm_execute.h:87
#12 0x00f8072c in xdebug_execute (op_array=0x99cb15c) at /usr/src/xdebug-cvs/xdebug.c:1158
#13 0x08195c59 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at
/usr/src/php5/Zend/zend.c:1087
#14 0x0815512b in php_execute_script (primary_file=0xbfffac10) at /usr/src/php5/main/main.c:1671
#15 0x08200287 in main (argc=4, argv=0xbffface4) at /usr/src/php5/sapi/cli/php_cli.c:1039
------------------------------------------------------------------------
[2005-04-29 09:05:00] dmitry@php.net
Fixed in CVS HEAD and PHP_5_0.
------------------------------------------------------------------------
[2005-04-29 03:29:29] sniper@php.net
Dmitry, if you have time, can you look into these reports with problems with
zend.ze1_compatibility_mode?
Some of them happen with only PHP_5_0 and some with both it and HEAD. Here's list (this bug
excluded):
bug #30332
bug #31828
bug #32080
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=32852
--
Edit this bug report at https://bugs.php.net/bug.php?id=32852&edit=1