php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #259 parse_str problem
Submitted: 1998-04-09 23:28 UTC Modified: 1998-04-10 10:11 UTC
From: eric at cosmu dot com Assigned:
Status: Closed Package: Other
PHP Version: 3.0b6 OS: Linux
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: eric at cosmu dot com
New email:
PHP Version: OS:

 

 [1998-04-09 23:28 UTC] eric at cosmu dot com
When used in a function parse_str does not appear to work
correctly.
ex:
Function test() {
   $aa = "AA1=67&AA2=89&AA3=98";
   parse_str($aa);
   echo "AA1=$AA1,AA2=$AA2,AA3=$AA3";

}
This does not work correctly. displays no values 
it worked ok in php 2
however if you do:
  echo "AA1=";
  echo $GLOBALS["AA1"];
  
it then displays the correct values.

Is this new behavior or a bug?
If new behavior it should at least be documented as this 
is a big change from version 2.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-04-10 10:11 UTC] zeev
Already fixed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Mar 15 07:01:29 2025 UTC