Re: DataObject::find bug?

From: Date: Fri, 07 Nov 2003 16:37:28 +0000
Subject: Re: DataObject::find bug?
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-23340@lists.php.net to get a copy of this message
This is at the bottom of DB_DataObject.php . In my opinion this should be better pointed out, somewhere at the top of the file or so.. It took me 4 hours of testing/development/browsing mailing list archives to find out the reason why my script is broken after uploading it to the production server (linux, php 4.3.3). This problem never occured during development in windows, php 4.3.3 - the same. // technially 4.3.2RC1 was broken!! // looks like 4.3.3 may have problems too.... if ((phpversion() != '4.3.2-RC1') && (version_compare( phpversion(), "4.3.1") > 0)) { overload('DB_DataObject'); $GLOBALS['_DB_DATAOBJECT']['OVERLOADED'] = true; } Anyways, I love this package :) --------- Alan Knowles wrote:
Can you try A) without the zend optimizer B) comment out the overload bit at the bottom of dataobjects. See if this makes any difference. Regards Alan Jeroen Houben wrote:
Fred Neumann wrote:
Hi, trying to use DataObjects I got a problem with the find() method which caused php to stop executing the script. Got it fixed by replacing the line 320 in DataObject.php
    $this->_build_condition($this->_get_table());
with the following:
    keys = $this->_get_table();
    $this->_build_condition($keys);
Don't know whether this problem is specific to my configuration:
had the same problem for which I posted a message to this list 3 days ago. Also using Apache 1.3 PHP 4.3.2 and DataObjects 0.19 Jeroen
Hi,
I just had the same problem, with php4.3.3 and DataObjects 0.19 . With the Overload bit commented, everything works again. Regards. -- Xavier

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