note 85051 added to function.get-magic-quotes-gpc

From: Date: Tue, 12 Aug 2008 22:40:39 +0000
Subject: note 85051 added to function.get-magic-quotes-gpc
Groups: php.notes 
Request: Send a blank email to php-notes+get-143424@lists.php.net to get a copy of this message
Following funny behaviour is not a bug and related to magic quotes apparently: 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, right?) 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 the manual, the bugreports AND all over the Internet for an explanation (or at least someone who experienced the same). No such luck. ---- Server IP: 89.248.170.61 Probable Submitter: 213.17.60.79 ---- Manual Page -- http://www.php.net/manual/en/function.get-magic-quotes-gpc.php Edit -- https://master.php.net/note/edit/85051 Del: integrated -- https://master.php.net/note/delete/85051/integrated Del: useless -- https://master.php.net/note/delete/85051/useless Del: bad code -- https://master.php.net/note/delete/85051/bad+code Del: spam -- https://master.php.net/note/delete/85051/spam Del: non-english -- https://master.php.net/note/delete/85051/non-english Del: in docs -- https://master.php.net/note/delete/85051/in+docs Del: other reasons-- https://master.php.net/note/delete/85051 Reject -- https://master.php.net/note/reject/85051 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#143424) next »