DB_common escapeSimple() not found
| From: | brian | Date: | Thu, 03 Nov 2005 20:06:18 +0000 |
| Subject: | DB_common escapeSimple() not found | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21760@lists.php.net to get a copy of this message | ||
DB-1.7.6/DB/common.php
call DB_common::quoteSmart($str) in my script (which has previously used DB methods fine):
Fatal error: Call to undefined function: escapesimple() in /usr/local/php/lib/php/DB/common.php on line 434
This is pretty strange. PHP refuses to recognize escapeSimple method called from quoteSmart(). This happens whether i call DB_common::quoteSmart() or DB_pgsql::quoteSmart().
My only work-around was to edit the source to perform the str_replace() directly within quoteSmart() rather than passing the value to escapeSimple().
Am i losing my mind? Nothing at all seems odd about the source. Can anyone reproduce this?
brian