#40380 [Opn->Bgs]: addslashes does not work when magic_quotes_sybase=On
ID: 40380
Updated by: tony2001@php.net
Reported By: iamchinason at 163 dot com
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: windows2003
PHP Version: 5.2.1RC4
New Comment:
http://php.net/addslashes
Previous Comments:
------------------------------------------------------------------------
[2007-02-07 07:36:31] iamchinason at 163 dot com
Description:
------------
when magic_quotes_sybase=On in PHP.ini and call addslashes function in
php page,get a wrong result.As if the addslashes function does not work
as it should be when magic_quotes_sybase=On.
Reproduce code:
---------------
<?php
echo addslashes("'\\\"\0");
?>
Expected result:
----------------
\'\\\"\0
Actual result:
--------------
''\"\0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40380&edit=1
Thread (2 messages)