From: cees at connectcase dot nl
Operating system: Linux
PHP version: 5.2CVS-2008-08-12 (CVS)
PHP Bug Type: *Configuration Issues
Bug description: Funny behaviour AddHandler
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 bug report at http://bugs.php.net/?id=45802&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45802&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45802&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45802&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45802&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45802&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45802&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45802&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45802&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45802&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45802&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45802&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45802&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45802&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45802&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45802&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45802&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45802&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45802&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45802&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45802&r=mysqlcfg