#40380 [Opn->Bgs]: addslashes does not work when magic_quotes_sybase=On

From: Date: Wed, 07 Feb 2007 09:06:33 +0000
Subject: #40380 [Opn->Bgs]: addslashes does not work when magic_quotes_sybase=On
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108527@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#108527) next »