note 65212 added to function.override-function
| From: | wiz at groupnetwork dot com | Date: | Thu, 27 Apr 2006 00:59:06 +0000 |
| Subject: | note 65212 added to function.override-function | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-109805@lists.php.net to get a copy of this message | ||
I was attempting to use these functions to avoid the cludge of addslashes hell, in a way that would
be very useful.
rename_function("addslashes","oldaddslashes");
function addslashes($s)
{
if(get_magic_quotes_gpc()) return $s;
return oldaddslashes($s);
}
Then I realized I'd probably have to use override_function, then I realized I don't have
the PECL installed, and became frustrated. Anyone know away around installing the PECL to accomplish
such a thing short of search and replacing all previous addslashes with a new
addslashesonlyifnotgpcon function?
----
Server IP: 64.71.164.2
Probable Submitter: 68.6.101.199
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.override-function.php
Edit -- http://master.php.net/note/edit/65212
Del: integrated -- http://master.php.net/note/delete/65212/integrated
Del: useless -- http://master.php.net/note/delete/65212/useless
Del: bad code -- http://master.php.net/note/delete/65212/bad+code
Del: spam -- http://master.php.net/note/delete/65212/spam
Del: non-english -- http://master.php.net/note/delete/65212/non-english
Del: in docs -- http://master.php.net/note/delete/65212/in+docs
Del: other reasons-- http://master.php.net/note/delete/65212
Reject -- http://master.php.net/note/reject/65212
Search -- http://master.php.net/manage/user-notes.php