From: tohar at sphera dot com Operating system: windows2003 PHP version: 4.3.4 PHP Bug Type: Unknown/Other Function Bug description: bug in stripslashes function with \0
Description: ------------ When using stripslashes function on a string with \0, the 0 character which should have returned, doesnt returned!!! Reproduce code: --------------- <? $x1 = 'a\b\c\22\0||TYPE'; $x2 = 'a\b\c\22\13||TYPE'; echo stripslashes($x1); echo "<BR>"; echo stripslashes($x2); ?> Expected result: ---------------- abc220||TYPE abc2213||TYPE Actual result: -------------- abc22||TYPE abc2213||TYPE -- Edit bug report at http://bugs.php.net/?id=27190&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27190&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27190&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27190&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27190&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27190&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27190&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27190&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27190&r=support Expected behavior: http://bugs.php.net/fix.php?id=27190&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27190&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27190&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27190&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27190&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27190&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27190&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27190&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27190&r=float