|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-30 12:45 UTC] zak@php.net
[2000-08-15 09:50 UTC] waldschrott@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 10 20:00:02 2026 UTC |
Hello, php segfaults when entering a page, it started doing so after i logged out (isset($HTTP_GET_VARS["logout"])) and i have no idea why It crashes before entering the validate() function (no echo("Validate"); appears) Thank you! contents of "include/auth.inc" <?PHP function deny($denied) { echo "denied"; global $error; if(isset($denied)) { include($denied); } else { include("include/denied.inc"); } exit; } function validate($denied) { echo("Validate"); global $HTTP_STATE_VARS,$HTTP_POST_VARS, $error, $user; session_start(); session_register("user","store"); if(isset($HTTP_STATE_VARS["user"])) { $user = $HTTP_STATE_VARS["user"]; } if(isset($HTTP_STATE_VARS["store"])) { $store = $HTTP_STATE_VARS["store"]; } if(isset($HTTP_POST_VARS["logout"])) { unset($user["valid"]); $error[] = "Utloggad"; deny($denied); } elseif(!isset($user["valid"])) { if(!isset($HTTP_POST_VARS["user"])) { deny($denied); } elseif(!fetchuser($HTTP_POST_VARS["user"],"user")) { $error[] = error("Det angivna kontot existerar inte"); deny($denied); } elseif($HTTP_POST_VARS["pass"] != $user["password"]) { $error[] = error("Du angav ett felaktigt l?senord f?r det angivna kontot"); deny($denied); } else { $user["valid"] = TRUE; SetCookie("id",$user["email"],time()+604800); } /* fetchuser */ } /* logout, else valid */ } /* function */ ?> # gdb /usr/local/sbin/httpd GNU gdb 19991116 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-mandrake-linux"...(no debugging symbols found)... (gdb) run -X -f /usr/local/etc/httpd/httpd.conf Starting program: /usr/local/sbin/httpd -X -f /usr/local/etc/httpd/httpd.conf Program received signal SIGSEGV, Segmentation fault. 0x807f4e0 in zend_get_resource_handle () (gdb) bt #0 0x807f4e0 in zend_get_resource_handle () #1 0x807f67f in zend_hash_add_or_update () #2 0x807da5f in zend_set_hash_symbol () #3 0x8092f96 in php_if_posix_getrlimit () #4 0x8093347 in _ps_srlzr_decode_php () #5 0x80935d6 in _ps_srlzr_decode_php () #6 0x80937f5 in _ps_srlzr_decode_php () #7 0x809461e in _php_cache_limiter_nocache () #8 0x809580b in php_if_session_start () #9 0x80cc170 in execute () #10 0x80cc33d in execute () #11 0x806b812 in php_execute_script () #12 0x8087273 in apache_php_module_main () #13 0x8067744 in send_php () #14 0x806778e in send_parsed_php () #15 0x80db7a9 in ap_invoke_handler () #16 0x80ef9bf in ap_some_auth_required () #17 0x80efe26 in ap_internal_redirect () #18 0x806332c in ap_get_server_built () #19 0x80db7a9 in ap_invoke_handler () #20 0x80ef9bf in ap_some_auth_required () #21 0x80efa2a in ap_process_request () #22 0x80e6cd6 in ap_child_terminate () ---Type <return> to continue, or q <return> to quit---