Bug #18118 Updated: Crashes when declaring a function with global $HTTP_SESSION_VARS, $_SESSION
| From: | sniper@php.net | Date: | Wed, 03 Jul 2002 00:14:07 +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-12896@lists.php.net to get a copy of this message | ||
ID: 18118
Updated by: sniper@php.net
Reported By: awoywood@entelchile.net
-Status: Open
+Status: Closed
Bug Type: Session related
Operating System: SUSE 6.4
PHP Version: 4.1.2
New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a
documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-07-02 18:16:55] awoywood@entelchile.net
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.
------------------------------------------------------------------------
[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