Re: Re: Call to undefined function: fetchrow

From: Date: Wed, 07 Apr 2004 21:39:23 +0000
Subject: Re: Re: Call to undefined function: fetchrow
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-27142@lists.php.net to get a copy of this message
Hi Lukas: On Wed, Apr 07, 2004 at 11:19:26PM +0200, Lukas Smith wrote: > > I think its caused in DB_common::executeEmulateQuery() > > if (count($this->prepare_types[$stmt]) != count($data)) { > $this->last_query = $this->prepared_queries[$stmt]; > return $this->raiseError(DB_ERROR_MISMATCH); > } Similar code was in there from the start of CVS. The section you're posting was modified in common.php versions 1.41 and 1.49. The commit messages for those versions are: REFINE PREPARE/EXECUTE EMULATION * Allow scalars in addition to arrays. * Eliminate unnecessary variable assignments. * Move error checking up front so it doesn't need to be repeated in for loop. * Reorganize conditional statements to reduce need for executing them. * Raise DB_ERROR_ACCESS_VIOLATION on fopen() failure. * Use fread() instead of while fgets(). * Adjust docblocks to match changes and related realities. and Allow associative arrays to be passed to execute() and (perhaps speed things) up by using foreach instead of for. So, the changes were made for good reasons and adding hacks for people who wrote buggy code doesn't seem appropriate. Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.pear.dev (#27142) next »