Bug #12083 Updated: addslashes
| From: | sniper@php.net | Date: | Sun, 19 Aug 2001 09:01:23 +0000 |
| Subject: | Bug #12083 Updated: addslashes | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-63707@lists.php.net to get a copy of this message | ||
ID: 12083
Updated by: sniper
Reported By: xyrix@pisem.net
Old Status:
Status: Open
Old Bug Type: Unknown/Other Function
Bug Type: Strings related
Operating System: Win32
PHP Version: 4.0.5
Previous Comments:
------------------------------------------------------------------------
[2001-07-12 03:05:03] derick@php.net
Please post a short example to show what goes wrong and why.
Derick
------------------------------------------------------------------------
[2001-07-12 02:41:51] xyrix@pisem.net
addslashes() don't properly work.
Before use it, need add this:
$str_any=str_replace("\\","\\\\",$str_any);
and only then:
$str_any=addslashes($str_any);
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12083&edit=1