Bug #18118 Updated: Crashes when declaring a function with global $HTTP_SESSION_VARS, $_SESSION

From: Date: Tue, 02 Jul 2002 22:16:56 +0000
Subject: Bug #18118 Updated: Crashes when declaring a function with global $HTTP_SESSION_VARS, $_SESSION
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12886@lists.php.net to get a copy of this message
ID: 18118 Updated by: awoywood@entelchile.net Reported By: awoywood@entelchile.net Status: Open Bug Type: Session related Operating System: SUSE 6.4 PHP Version: 4.1.2 New Comment: I just tried the same in PHP 4.1.2 in Win2000 (build 2195) and executed without problem. The problem it's only in the linux version. Previous Comments: ------------------------------------------------------------------------ [2002-07-02 18:00:53] awoywood@entelchile.net PHP crashes with the following code: <? function a () { global $HTTP_SESSION_VARS, $_SESSION; return true; } session_start(); $tmp=a(); //dies here echo "Got here"; ?> If you take the "$_SESSION" out of the global statement, it runs without problem. I'm using PHP 4.1.2 (default php.ini), SUSE 6.4 and Apache/1.3.23 Alejandro. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18118&edit=1

« previous php.bugs (#12886) next »