php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48279 issue of function:parse_str
Submitted: 2009-05-14 09:43 UTC Modified: 2009-05-22 01:00 UTC
From: liyan at funsing dot com Assigned:
Status: No Feedback Package: Strings related
PHP Version: 5.2.5 OS: FreeBSD 7.0-RELEASE
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: liyan at funsing dot com
New email:
PHP Version: OS:

 

 [2009-05-14 09:43 UTC] liyan at funsing dot com
Description:
------------
in window and freebsd, windows is OK;
the "magic_quotes_gpc" value is "On"

environment:
PHP Version 5.2.5
FreeBSD 7.0-RELEASE
Apache2


PHP Version 5.2.3
Windows 2003
Apache2

Reproduce code:
---------------
<?php
echo get_magic_quotes_gpc()?'agic_quotes_gpc: open':'agic_quotes_gpc: colsed';
echo "<br/>";

parse_str("var=abc'def",$result);

print_r($result);
phpinfo();
?>

Expected result:
----------------
agic_quotes_gpc: open
Array ( [var] => abc\'def ) 

Actual result:
--------------
agic_quotes_gpc: open
Array ( [function] => test\\\'dsf )

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-14 12:33 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-05-22 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC