ID:               15571
 Updated by:       [EMAIL PROTECTED]
-Summary:          incredible slashing of " and \
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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

Reply via email to