Home » Database » DB_DataObject » Bug #3225
Doubled ini entries in generator
Details
| Submitted | 2005-01-18 07:41 UTC |
|---|---|
| From | h dot schaefer at uniorg dot de |
| Assigned | alan_k |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | 5.0.3 |
| OS | Win/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";
}