Bug #15571 Updated: incredible slashing of " and \
| From: | hholzgra@php.net | Date: | Fri, 15 Feb 2002 16:31:48 +0000 |
| Subject: | Bug #15571 Updated: incredible slashing of " and \ | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-366@lists.php.net to get a copy of this message | ||
ID: 15571
Updated by: hholzgra@php.net
-Summary: incredible slashing of " and \
Reported By: mav@alkar.net
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: FreeBSD 4.x
PHP Version: 4.1.1
New Comment:
this intended behaviour that is configurable
and defaults to 'on'
see http://www.php.net/manual/en/configuration.php
and check your magic_quotes_* settings in php.ini
(verify using phpinfo() output)
magic_quotes_gpc boolean
Sets the magic_quotes state for GPC (Get/Post/Cookie) operations.
When magic_quotes are on, all ' (single-quote), " (double quote), \
(backslash) and NUL's are escaped with a backslash automatically. If
magic_quotes_sybase is also on, a single-quote is escaped with a
single-quote instead of a backslash.
magic_quotes_runtime boolean
If magic_quotes_runtime is enabled, most functions that return data
from any sort of external source including databases and text files
will have quotes escaped with a backslash. If magic_quotes_sybase is
also on, a single-quote is escaped with a single-quote instead of a
backslash.
magic_quotes_sybase boolean
If magic_quotes_sybase is also on, a single-quote is escaped with a
single-quote instead of a backslash if magic_quotes_gpc or
magic_quotes_runtime is enabled.
Previous Comments:
------------------------------------------------------------------------
[2002-02-15 11:08:15] mav@alkar.net
When script must take variable that consist " and \
it takes \" and \\.
You can see this bug on http://bugs.php.net/search.php
if you enter \" in any field and press "Search".
I have PHP 4.1.1 configured with such options:
./configure --with-apxs=/usr/local/apache/bin/apxs
--with-config-file-path=/usr/local/apache/conf
--with-mysql=/usr/local/mysql --with-gd=/usr/local --enable-trans-sid
--enable-versioning --enable-inline-optimization --enable-ftp
--enable-dbase --enable-gd-native-ttf --with-ttf
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15571&edit=1