|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-01-02 00:43 UTC] arpad@php.net
-Status: Open
+Status: Verified
-Assigned To:
+Assigned To: arpad
[2012-01-03 21:46 UTC] arpad@php.net
[2012-01-03 21:47 UTC] arpad@php.net
-Assigned To: arpad
+Assigned To:
[2012-01-03 21:47 UTC] arpad@php.net
[2012-01-04 11:43 UTC] arpad@php.net
[2012-02-03 10:29 UTC] tony2001@php.net
-Status: Verified
+Status: Assigned
-Assigned To:
+Assigned To: iliaa
[2012-03-08 03:31 UTC] iliaa@php.net
[2012-03-08 03:31 UTC] iliaa@php.net
-Status: Assigned
+Status: Closed
[2012-03-08 03:31 UTC] iliaa@php.net
[2012-04-18 09:45 UTC] laruence@php.net
[2012-07-24 23:36 UTC] rasmus@php.net
[2013-11-17 09:33 UTC] laruence@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 04:00:01 2025 UTC |
Description: ------------ The apache or the CLI reports an segmentation fault while trying to die() or to exit() a script in the write method of a class which extends the SessionHandler class. Test script: --------------- <?php class session_handler extends SessionHandler { function close () {return true;} function destroy ($a) {return true;} function open ($a,$b) {return true;} function gc ($a) {return true;} function read ($a) {return "";} function write ($a,$b) {die();} } session_set_save_handler(new session_handler); session_start(); session_write_close(); # apache segfaults print "never appears?"; Actual result: -------------- Apache/cli segfaults Backtrace: #0 0x000000010261de30 in zval_delref_p [inlined] () at /Users/.../php-src-trunk-20120101/Zend/zend.h:82 #1 0x000000010261de30 in i_zval_ptr_dtor [inlined] () at /Users/.../php-src-trunk-20120101/Zend/zend_execute.h:82 #2 0x000000010261de30 in zend_vm_stack_clear_multiple [inlined] () at /Users/.../php-src-trunk-20120101/Zend/zend_execute.h:339 #3 0x000000010261de30 in zend_do_fcall_common_helper_SPEC (execute_data=0x109a170d8) at zend_execute.c:736 #4 0x000000010262720e in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0x109a170d8) at zend_vm_execute.h:2215 #5 0x000000010261aec2 in execute (op_array=0x109a51d98) at zend_vm_execute.h:410 #6 0x00000001025c731b in zend_execute_scripts (type=8, retval=0x0, file_count=3) at zend.c:1272 #7 0x0000000102509153 in php_execute_script (primary_file=0x7fff6198ab60) at main.c:2476 #8 0x000000010279d153 in do_cli (argc=2, argv=0x7fff6198ae18) at php_cli.c:983 #9 0x000000010279ee95 in main (argc=2, argv=0x7fff6198ae18) at php_cli.c:1356