php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23627 Probleme with variable assignement
Submitted: 2003-05-14 06:26 UTC Modified: 2003-05-14 09:45 UTC
From: laurent at nunenthal dot org Assigned:
Status: Closed Package: Session related
PHP Version: 4.3.1 OS: debian
Private report: No CVE-ID: None
 [2003-05-14 06:26 UTC] laurent at nunenthal dot org
I have experiment a funny bug with session_register in 
this little script :
<?php
//loginf and passfordf go from a form
include("../mysql.inc.php");
session_start();
$login=$loginf;
$password=$passwordf;
print("login : $login password : $password<br>");
session_register("login","password");
print("login : $login password : $password<br>");
?>
the result of printing is the variable $login take the 
value of the variable $password.

If i replace "session_register("login","password");"
by
session_register("login");
session_register("password");

All work fine...

Thank you for your job.

Laurent

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-14 09:45 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 19:01:34 2024 UTC