cvs: pear /DB_DataObject/DataObject createTables.php

From: Date: Wed, 20 Apr 2005 07:44:00 +0000
Subject: cvs: pear /DB_DataObject/DataObject createTables.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-31311@lists.php.net to get a copy of this message
alan_k Wed Apr 20 03:44:00 2005 EDT Modified files: /pear/DB_DataObject/DataObject createTables.php Log: fix bug #4019 - createTables uses sets up options for DB compatibility mode http://cvs.php.net/diff.php/pear/DB_DataObject/DataObject/createTables.php?r1=1.20&r2=1.21&ty=u Index: pear/DB_DataObject/DataObject/createTables.php diff -u pear/DB_DataObject/DataObject/createTables.php:1.20 pear/DB_DataObject/DataObject/createTables.php:1.21 --- pear/DB_DataObject/DataObject/createTables.php:1.20 Fri Mar 11 22:36:09 2005 +++ pear/DB_DataObject/DataObject/createTables.php Wed Apr 20 03:44:00 2005 @@ -16,7 +16,7 @@ // | Author: Alan Knowles <alan@akbkhome.com> // +----------------------------------------------------------------------+ // -// $Id: createTables.php,v 1.20 2005/03/12 03:36:09 alan_k Exp $ +// $Id: createTables.php,v 1.21 2005/04/20 07:44:00 alan_k Exp $ // // since this version doesnt use overload, @@ -37,11 +37,14 @@ } $config = parse_ini_file($_SERVER['argv'][1], true); +foreach($config as $class=>$values) { + $options = &PEAR::getStaticProperty($class,'options'); + $options = $values; +} -$options = &PEAR::getStaticProperty('DB_DataObject','options'); -$options = $config['DB_DataObject']; -if (!$options) { +$options = &PEAR::getStaticProperty('DB_DataObject','options'); +if (empty($options)) { PEAR::raiseError("\nERROR: could not read ini file\n\n", null, PEAR_ERROR_DIE); exit; }

« previous php.pear.cvs (#31311) next »