ID: 14264
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Bogus
Bug Type: Session related
Operating System: RedHat LINUX 7.2
PHP Version: 4.1.0
New Comment:
(bogusified)
Previous Comments:
------------------------------------------------------------------------
[2001-11-28 05:49:09] [EMAIL PROTECTED]
> session_start();
> $abc = '';
so what do you expect to happen when you overwrite
the value of a session variable immediately after
restoring it using session_start()?
PS:
> error_reporting(63);
*never* use numeric constants for error reporting settings, *always* use the symbolic
constants like E_ALL and E_WARNING, unless you want to get bitten by future additions
of error classes
------------------------------------------------------------------------
[2001-11-28 05:42:42] [EMAIL PROTECTED]
With this piece of code the session variable is not keeping track of the increment:
<?php
error_reporting(63);
session_start();
$abc = '';
session_register('abc');
$abc += 1;
$_SESSION['abc'] += 2;
print "<pre>$abc\n\n";
print_r( $_SESSION);
?>
While minor alteration of above code as below the session variable works:
<?php
error_reporting(63);
$abc = '';
session_start();
session_register('abc');
$abc += 1;
$_SESSION['abc'] += 2;
print "<pre>$abc\n\n";
print_r( $_SESSION);
?>
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14264&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]