#48279 [Opn->Fbk]: issue of function:parse_str
ID: 48279
Updated by: jani@php.net
Reported By: liyan at funsing dot com
-Status: Open
+Status: Feedback
Bug Type: Strings related
Operating System: FreeBSD 7.0-RELEASE
-PHP Version: 5.2CVS-2009-05-14 (snap)
+PHP Version: 5.2.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2009-05-14 09:43:25] 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 )
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48279&edit=1
Thread (2 messages)