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 #3225

Doubled ini entries in generator

Details

Submitted2005-01-18 07:41 UTC
Fromh dot schaefer at uniorg dot de
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP Version5.0.3
OSWin/Linux
Roadmaps(Not assigned)

Comments

[2005-01-18 07:41 UTC] h dot schaefer at uniorg dot de

Description:
------------
The generated database.ini schema file contains each attribut twies. First output is obsolte. See my comment in Reproduced Code. Error is in latest cvs snapshot.

Reproduce code:
---------------
Generator.php,v 1.82

//$this->_newConfig .= "{$t->name} = $type\n"; // commented by elipson
$write_ini = true;
if (in_array($t->name,array('null','yes','no','true','false'))) {
echo "*****************************************************************\n".
"** WARNING **\n".
"** Found column '{$t->name}', which is invalid in an .ini file **\n".
"** This line will not be writen to the file - you will have **\n".
"** define the keys()/method manually. **\n".
"*****************************************************************\n";
$write_ini = false;
} else {
$this->_newConfig .= "{$t->name} = $type\n";
}