note 65212 rejected from function.override-function by bjori

From: Date: Thu, 27 Apr 2006 01:06:19 +0000
Subject: note 65212 rejected from function.override-function by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109806@lists.php.net to get a copy of this message
Note Submitter: wiz at groupnetwork dot com ---- 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?

« previous php.notes (#109806) next »