From: hafizanil at gmail dot com
Operating system: Windows Xp
PHP version: 5.3.0
PHP Bug Type: Scripting Engine problem
Bug description: $_GET variable
Description:
------------
Want to sent variable via javascript via $_GET method and the output going
hirewire.The varible sent also been escape first(javascript).Tested using
5.29 and 5.3
Browser 1.Internet Explorer 7
2 Firefox 3.52
3. Opera 10
Reproduce code:
---------------
This is tested 5.29
[code]
$_GET['to']="admin (sit: mr chang n mr sairi n mr pzan)
<[email protected]>,";
echo strlen($_GET['to'])
// out put 63
var_dump($_GET);
// output only showing admin (sit: mr chang n mr sairi n mr pzan)
[/code]
This is tested 5.30
[code]
$_GET['to']="admin (sit: mr chang n mr sairi n mr pzan)
<[email protected]>,";
echo strlen($_GET['to'])
// out put 63
var_dump($_GET);
//output :Page going crazy.show all the php source
[/code]
Expected result:
----------------
var_dump or print_r $_GET array should understand the variable which might
contain "<>";
Actual result:
--------------
On 5.3 It show all the source php .
--
Edit bug report at http://bugs.php.net/?id=49444&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=49444&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=49444&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=49444&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=49444&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=49444&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=49444&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=49444&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=49444&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=49444&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=49444&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=49444&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=49444&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=49444&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=49444&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49444&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49444&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=49444&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=49444&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=49444&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=49444&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=49444&r=mysqlcfg