ID: 45802
Updated by: [email protected]
Reported By: cees at connectcase dot nl
-Status: Open
+Status: Bogus
Bug Type: *Configuration Issues
Operating System: Linux
PHP Version: 5.2CVS-2008-08-12 (CVS)
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php
look for magic_quotes_gpc
Previous Comments:
------------------------------------------------------------------------
[2008-08-12 19:30:32] cees at connectcase dot nl
Description:
------------
Adding the following to your .htaccess file:
"AddHandler application/x-httpd-php .php"
parses all php files correctly regarding "slash-involved" functions
like addslashes, mysql_real_escape_string etc.:
addslashes("O'Brien") results in "O\'Brien" (as it should be?)
Adding the 5 to the PHP handler to your .htaccess file :
"AddHandler application/x-httpd-php5 .htm .html .php"
results in 2 extra slashes.
addslashes("O'Brien") results in "O\\\'Brien".
I have searched for bugreports AND all over the Internet for an
explanation (or at least someone who experienced the same). No such
luck.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45802&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.