note 41946 added to function.set-magic-quotes-runtime

From: Date: Tue, 27 Apr 2004 11:16:38 +0000
Subject: note 41946 added to function.set-magic-quotes-runtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-68865@lists.php.net to get a copy of this message
Ive noticed a weird thing. I have all the entries in /etc/php.ini for magic quotes set to Off. I put set_magic_quotes_runtime(0) in the top of my script. Yet, when I do: $input = preg_replace("/(<\\/?.*?>)/esi", "strtolower('\\\\1')", $input); It escapes any quotes regardless of the magic quotes settings. This is incredibly annoying. I've yet to discover a workround. *headbash into wall in fustration* ---- Manual Page -- http://www.php.net/manual/en/function.set-magic-quotes-runtime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41946 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41946&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41946&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68865) next »