Re: DB_DataObject not creating tables
| From: | Larry Garfield | Date: | Tue, 18 Jan 2005 09:55:38 +0000 |
| Subject: | Re: DB_DataObject not creating tables | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16989@lists.php.net to get a copy of this message | ||
Oh joy.... Does it affect only the createTables.php script, or will I need to add that to any script that uses DB_DataObject subsequently?
Trevan wrote:
PHP 4.3.10 has a problem with this. You might try adding adding define('DB_DATAOBJECT_NO_OVERLOAD',1); to the top, since that has helped some people, but for me, I had to change PHP back to 4.3.9, or get the latest snapshot for it to work. Trevan Larry Garfield wrote:-- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas JeffersonGreetings, all. I'm trying out DB_DatObject for the first time. I've read through the docs and followed the instructions listed, but running into a problem. Specifically, when I try to run createTables.php I get a function error. From the PEAR/DB/DataObject directory: $ php4 createTables.php ../../../db_dataobject.inidb_dataobject_generator : 0 : CREATING FOR gmdarchivedb_dataobject_generator : 0 : calling generatedefinitionsFatal error: Call to a member function on a non-object in /usr/share/php/DB/DataObject/Generator.php on line 132 I checked, and line 132 of Generator.php is just a }. Thoughts on what the problem could be? PHP Version: 4.3.10 OS: Linux 2.6.10 DB_DataObject version: 1.7.2 Any help greatly appreciated.