php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40380 addslashes does not work when magic_quotes_sybase=On
Submitted: 2007-02-07 07:36 UTC Modified: 2007-02-07 09:06 UTC
From: iamchinason at 163 dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 5.2.1RC4 OS: windows2003
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: iamchinason at 163 dot com
New email:
PHP Version: OS:

 

 [2007-02-07 07:36 UTC] 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 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Jul 05 10:05:45 2022 UTC