From: Lewis Bergman <lbergman@ab...> - 2000-06-22 13:59:55
I am forwarding this in the hope that it strikes a chord with someone about the
segfault problem that someone was having. I have a hard time believing it is
the code but here it is anyway.
---------- Forwarded Message ----------
Subject: Re: [PHP-GENERAL] More on segfaulting sessions
Date: Wed, 21 Jun 2000 23:31:18 -0500
From: richard@... (Richard Lynch)
In article <B571B448.B96%miguel@...>, miguel@... (Miguel
> Here's some code that seems to generate a segfault every time (well,
> beginning with the second time it's run, once the sess_ file has been
> function crash()
> global $x, $HTTP_SESSION_VARS;
> print "value is $x";
> I distilled it down from a 1000-line PHP file by removing parts until I had
> the shortest program that still killed httpd.
I *THINK* $HTTP_SESSION_VARS is already a global by nature, and by
declaring it global, you are then accessing some other $HTTP_SESSION_VARS
(an empty one) and possibly confusing PHP4 irreparably when it tries to
Does that make sense?
Well, try it without the HTTP_SESSION_VARS in the global statement anyway.
It shouldn't crash, so it's still a bug, but you may be able to get on
with your life while we fix it :-)
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htmhttp://www.zend.com | (this has nothing to do with Zend, duh!)
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@...
For additional commands, e-mail: php-general-help@...
To contact the list administrators, e-mail: php-list-admin@...
4309 Maple St.
Abilene, TX 79602