ID: 13078
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Critical
Bug Type: Session related
Operating System: FreeBSD 4.x
PHP Version: 4.0.6, 4.1.0
New Comment:
Just to note that I can not reproduce this with latest CVS.
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-12-13 05:55:59] [EMAIL PROTECTED]
PHP 4.1.0 (release)
TEST SCRIPT:
<?php
session_start();
$_SESSION['test'] = 'YES';
echo ini_get('register_globals');
?>
SESSION FILE CONTENTS:
With register_globals = 1:
<empty>
With register_globals = 0:
test|s:3:"YES";
------------------------------------------------------------------------
[2001-12-13 05:14:14] [EMAIL PROTECTED]
Yes, I have problems with or without session_register/unregister.
In fact, I first tried:
$_SESSION["varname"] = "somevaluehere";
to see if it was saved. But it was NOT. So, I tried this:
session_register("varname");
$_SESSION["varname"] = "somevaluehere";
thinking it would help. Anyhow, none of the above worked.
Once again, if
register_globals=on
then, everything is fine.
---ends---
------------------------------------------------------------------------
[2001-12-13 04:52:52] [EMAIL PROTECTED]
When you use $_SESSION or $HTTP_SESSION_VARS, you don't need
session_register/unregister to save session vars.
Do you have problem still when you don't use session_register/unregister?
------------------------------------------------------------------------
[2001-12-13 02:54:32] [EMAIL PROTECTED]
Added 4.1.0 into the "PHP Version" field of this report.
---ends---
------------------------------------------------------------------------
[2001-12-12 07:56:54] [EMAIL PROTECTED]
After posting the test results with 4.1.0, I tried using:
session_register("varname");
before doing a:
$_SESSION["varname"];
i.e.,
session_register("varname");
$_SESSION["varname"] = "somevaluehere";
And yet, the custom sess_write was never called.
--ends--
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=13078
Edit this bug report at http://bugs.php.net/?id=13078&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]