|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-09-13 10:27 UTC] meesly at phpug dot ch
Seems that PHP crashes when using $_SESSION = ""; or $_SESSION = null; at Linux and win32. $_SESSION = array(); works fine. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 04:00:01 2025 UTC |
I can verify this on linux and latest CVS HEAD (I now, $_SESSION is expected to be an array, but it shouldn't segfault nevertheless) here's a backtrace #0 zend_hash_get_current_key_ex (ht=0x4036e92a, str_index=0xbffff188, str_length=0xbffff18c, num_index=0xbffff190, duplicate=0, pos=0xbffff198) at /opt/cvs/php4.3/Zend/zend_hash.c:1054 #1 0x4026850a in php_session_save_current_state () at /opt/cvs/php4.3/ext/session/session.c:566 #2 0x4026aad1 in php_session_flush () at /opt/cvs/php4.3/ext/session/session.c:1435 #3 0x4026ab10 in zm_deactivate_session (type=1, module_number=35) at /opt/cvs/php4.3/ext/session/session.c:1449 #4 0x403107e6 in module_registry_cleanup (module=0x81368b8) at /opt/cvs/php4.3/Zend/zend_API.c:1170 #5 0x403124a2 in zend_hash_apply (ht=0x40399ac0, apply_func=0x403107ac <module_registry_cleanup>) at /opt/cvs/php4.3/Zend/zend_hash.c:688 #6 0x4030da7c in zend_deactivate_modules () at /opt/cvs/php4.3/Zend/zend.c:585 #7 0x402e6b5d in php_request_shutdown (dummy=0x0) at /opt/cvs/php4.3/main/main.c:898 #8 0x40326623 in apache_php_module_main (r=0x818d624, display_source_mode=0) at /opt/cvs/php4.3/sapi/apache/sapi_apache.c:61 #9 0x40327110 in send_php (r=0x818d624, display_source_mode=0, filename=0x0) at /opt/cvs/php4.3/sapi/apache/mod_php4.c:563 #10 0x40327172 in send_parsed_php (r=0x818d624) at /opt/cvs/php4.3/sapi/apache/mod_php4.c:578 #11 0x08073d89 in ap_invoke_handler () #12 0x080894df in process_request_internal () #13 0x08089546 in ap_process_request () #14 0x0807ffd6 in child_main () #15 0x08080191 in make_child () #16 0x0808030c in startup_children () #17 0x0808099d in standalone_main () #18 0x0808120c in main () #19 0x400b80bf in __libc_start_main () from /lib/libc.so.6 chregu