PHP 4.0 Bug #5186: Certain combinations of session actions lead to segfault
| From: | mnc at firmseek dot com | Date: | Thu, 22 Jun 2000 04:36:57 +0000 |
| Subject: | PHP 4.0 Bug #5186: Certain combinations of session actions lead to segfault | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-22124@lists.php.net to get a copy of this message | ||
From: mnc@firmseek.com
Operating system: RH Linux 6.1, HP-UX 10.20
PHP version: 4.0.0 Release
PHP Bug Type: Reproduceable crash
Bug description: Certain combinations of session actions lead to segfault
Here's code that reliably causes a segfault on all of our servers (as well as those of another
user on the PHP-general mailing list). You may need to run it twice (so the session variable exists
on disk) to generate the crash.
<?
function crash()
{
global $x, $HTTP_SESSION_VARS;
session_start();
session_register('x');
$x++;
}
crash();
print "value is $x";
?>