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
 [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

Add a Patch

Pull Requests

Add a Pull Request

History

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