php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18882 GLOBAL DUPLICATION
Submitted: 2002-08-13 09:48 UTC Modified: 2002-08-13 12:06 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: paul dot d dot rowlands at delphiauto dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.2.2 OS: WIN 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: paul dot d dot rowlands at delphiauto dot com
New email:
PHP Version: OS:

 

 [2002-08-13 09:48 UTC] paul dot d dot rowlands at delphiauto dot com
I have updated from php4.0.6 on NT (APACHE 1.3.22) to php4.2.2 on win 2000 (APACHE 2.0.39).

Why is global zpass = "whatisthis" repeated in the global string with the key and value. This works fine in 4.0.6

4.2.2 $GLOBALS["zpass"]=whatisthiszpass=whatisthis 

4.0.6 $GLOBALS["zpass"]=whatisthis

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-13 10:17 UTC] kalowsky@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2002-08-13 10:56 UTC] paul dot d dot rowlands at delphiauto dot com
PHP SCRIPT:----

<FORM METHOD="POST">
  Type in password &nbsp&nbsp&nbsp <input type="password" name="zpass" size="6" />
  &nbsp&nbsp&nbsp<input type="submit" value="Submit" />
</FORM>
<?php
print("zpass=$HTTP_POST_VARS[zpass]");
   ECHO "<BR><BR><BR>";
      ECHO "<BR><BR><BR>";
echo $GLOBALS["zpass"];
   ECHO "<BR><BR><BR>";
foreach ($HTTP_POST_VARS as $Key=>$Value)
{
  echo "<LI>\$GLOBALS[\"$Key\"]=$Value\n";
}
echo "<br>";

?>
 [2002-08-13 11:23 UTC] paul dot d dot rowlands at delphiauto dot com
PHP SCRIPT:----

<FORM METHOD="POST">
  Type in password &nbsp&nbsp&nbsp <input type="password" name="zpass"
size="6" />
  &nbsp&nbsp&nbsp<input type="submit" value="Submit" />
</FORM>
<?php
print("zpass=$HTTP_POST_VARS[zpass]");
   ECHO "<BR><BR><BR>";
      ECHO "<BR><BR><BR>";
echo $GLOBALS["zpass"];
   ECHO "<BR><BR><BR>";
foreach ($HTTP_POST_VARS as $Key=>$Value)
{
  echo "<LI>\$GLOBALS[\"$Key\"]=$Value\n";
}
echo "<br>";

?>
 [2002-08-13 12:06 UTC] edink@php.net
Cannot reproduce the problem neither on Windows 2000 or Linux. It most probably a problem with your installation.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 06:00:01 2026 UTC