|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-12 19:42 UTC] johannes@php.net
[2008-08-12 22:28 UTC] cees at connectcase dot nl
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
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.