Re: DB_common escapeSimple() not found

From: Date: Thu, 03 Nov 2005 21:15:22 +0000
Subject: Re: DB_common escapeSimple() not found
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21762@lists.php.net to get a copy of this message
On 11/3/05, brian <brian@zijn-digital.com> wrote: > 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? > Sound slike you may have an upgrade/include_path problem. Use get_included_files() to make sure all of the DB stuff is being included from the same place. -- Justin Patrin

« previous php.pear.general (#21762) next »