From: [EMAIL PROTECTED]
Operating system: RedHat LINUX 7.2
PHP version: 4.1.0
PHP Bug Type: Session related
Bug description: Session variable not keeping track of increment
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 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]