From: gazheyes at gmail dot com Operating system: All PHP version: 5.2.8 PHP Bug Type: Strings related Bug description: Stripslashes function is converting \0 into a null character
Description: ------------ Stripslashes appears to be converting null escapes into a null character. I've tested other unicode characters from 0 to 100,000 and only null escapes are converted. IMO you shouldn't be able to decode null chars from a url like this. Marc Zimmerli originally found this bug. Reproduce code: --------------- the url contains page.php?x=\0 <?php echo stripslashes($_GET['x']); ?> Expected result: ---------------- 0 Actual result: -------------- null -- Edit bug report at http://bugs.php.net/?id=47501&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47501&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47501&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47501&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47501&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47501&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47501&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47501&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47501&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47501&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47501&r=support Expected behavior: http://bugs.php.net/fix.php?id=47501&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47501&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47501&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47501&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47501&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47501&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47501&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47501&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47501&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47501&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47501&r=mysqlcfg