Re: DataObject::find() not working on certain web host

From: Date: Sun, 15 Feb 2004 20:05:47 +0000
Subject: Re: DataObject::find() not working on certain web host
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10701@lists.php.net to get a copy of this message
Hi, In the email you sent, You gave the answer to the problem. "You may also try to add define('DB_DATAOBJECT_NO_OVERLOAD', true); to the beginning of your scripts. This is needed because the Zend optimizer running on the server may break your scripts (especially in the find() method as far as I remember). Keep us informed what happened." I added the define and it works perfectly now. Thanks a million Regards Martijn "Norbert Mocsnik" <pear-general@mocsnik.hu> wrote in message news:402FBEA9.80900@mocsnik.hu... > Hello Martijn, > > Did you get any answer already regarding your question? What do you mean > by "find simply does not work"? Do you get any output? > > Try to call DB_DataObject::debugLevel(5); before and > DB_DataObject::debugLevel(0) after the find() so you can get some useful > debugging info. > > DB_DataObject::debugLevel(5); > $count = $do->find(); > DB_DataObject::debugLevel(0); > > Take a look at the sql output in the debug msgs if the generated sql > query is correct. If you cannot find any errors in it tell us what > exactly happens and send the debug output to the list. > > Regards, > Norbert > > Martijn Hooimeijer wrote: > > Hi There, > > > > 1) I am a great fan of DB_DataObject. > > > > 2) I hav used DB_DataObject in severak servers, but I recently installed it > > on a server, belonging to www.widexs.nl. > > > > The "find" simply does not work. I had to recode my scripts to form the SQL > > myself and then use the "query" method of the DataObject. This obvously > > defeats one of the main purposes of DB_DataObject, and I am sure I am not > > doing a good enough job. > > > > I am at a loss at why this does not work on that provider. > > > > I am sending the phpinfo along: > > > > > > PHP Version 4.3.4 > [..was too long..]

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