Bug #18118: Crashes when declaring a function with global $HTTP_SESSION_VARS, $_SESSION
| From: | awoywood at entelchile dot net | Date: | Tue, 02 Jul 2002 22:00:54 +0000 |
| Subject: | Bug #18118: Crashes when declaring a function with global $HTTP_SESSION_VARS, $_SESSION | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-12884@lists.php.net to get a copy of this message | ||
From: awoywood@entelchile.net
Operating system: SUSE 6.4
PHP version: 4.1.2
PHP Bug Type: Session related
Bug description: Crashes when declaring a function with global $HTTP_SESSION_VARS, $_SESSION
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 bug report at http://bugs.php.net/?id=18118&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18118&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18118&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18118&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18118&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18118&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18118&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18118&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18118&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18118&r=globals