PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_DataObject » Bug #3122

Generator fails after PHP update 4.3.2->4.3.10

Details

Submitted2005-01-06 15:30 UTC
Fromstrauchdieb at gmx dot de
StatusBogus
PackageDB_DataObject
PHP Version4.3.10
OSMac OS X
Roadmaps(Not assigned)

Comments

[2005-01-06 15:30 UTC] strauchdieb at gmx dot de

Description:
------------
I recently updated my PHP CLI from version 4.3.2 to
4.3.10
After that the createTables.php script fails with a
"Call to a member function on a non-object".
I hunted the error down to line 124 in Generator.php:
the $t->createTableList() call sets the variable $t to
null or false.

Actual result:
--------------
Fatal error: Call to a member function on a non-object
in /usr/local/lib/php/DB/DataObject/Generator.php on
line 133

Call Stack:
0.0035 1. {main}() /usr/local/lib/php/DB/
DataObject/createTables.php:0
0.1785 2. db_dataobject_generator->start() /usr/
local/lib/php/DB/DataObject/Generator.php:47

[2005-01-23 21:40 UTC] php-20050123 at alister dot dnsalias dot com

Dupes bug #3025

Try putting
define('DB_DATAOBJECT_NO_OVERLOAD',1);
onto the first PHP line on createTables.php (literally right after the open php tag).