php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #155 bug in parse_str()
Submitted: 1998-03-09 15:51 UTC Modified: 1998-03-13 04:56 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: be at shonline dot de Assigned:
Status: Closed Package: Other
PHP Version: 3.0b6 OS: sunos 2.5.1
Private report: No CVE-ID: None
 [1998-03-09 15:51 UTC] be at shonline dot de
Arrays aren't parsed by parse_str()
as shown by this script:


<?php
 $a="var[alpha]=foo&var[beta]=bar&noarray=works";
 parse_str($a);
 print $var["alpha"]."\n".$noarray."\n";
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-13 04:56 UTC] zeev
_php3_parse_gpc() was writing to symbol_table and active_symbol_table on other times
it should always write to active_symbol_table
also, the internal functions API had to be changed a bit,
so that active_symbol_table inside internal functions is
the symbol table of the scope
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 00:01:32 2024 UTC