More on segfaulting sessions
| From: | Miguel Cruz | Date: | Sun, 18 Jun 2000 03:03:37 +0000 |
| Subject: | More on segfaulting sessions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-2145@lists.php.net to get a copy of this message | ||
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
created):
<?
function crash()
{
global $x, $HTTP_SESSION_VARS;
session_start();
session_register('x');
$x++;
}
crash();
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.
miguel