PHP 4.0 Bug #8270: problem when including phpinfo() command with session
| From: | web at sorbom dot net | Date: | Fri, 15 Dec 2000 06:08:58 +0000 |
| Subject: | PHP 4.0 Bug #8270: problem when including phpinfo() command with session | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41431@lists.php.net to get a copy of this message | ||
From: web@sorbom.net
Operating system: nt4 sp6a
PHP version: 4.0.3pl1
PHP Bug Type: *Function Specific
Bug description: problem when including phpinfo() command with session
The following simple script should increment the counter by 1 on each reload. Instead it increments
by 3 on the first reload, then increments by 1 on subsequent reloads. Removing the phpinfo()
command allows the counter to operate correctly.
Placing the phpinfo() command before the session start does not work either.
Please let me know if I have done something wrong, or if this is a real problem.
I am not running the isapi module.
Thanks
Steven
<html><head><title>PHP Test</title></head>
<body>
<?
// initialize a session
session_start();
// register a session variable
session_register ("counter");
// increment value of counter
$counter++;
// Display a cute message with counter
echo("You have reloaded this page $counter times.<P>");
// Display whole bunch of information
phpinfo();
?>
</body></html>
--
Edit Bug report at: http://bugs.php.net/?id=8270&edit=1