Home » Database » DB_DataObject » Bug #2674
reserved words in ini files
Details
| Submitted | 2004-11-02 17:00 UTC |
|---|---|
| From | andreasnoever at yahoo dot de |
| Assigned | alan_k |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | 5.0.1 |
| OS | linux 2.6 |
| Roadmaps | (Not assigned) |
Comments
[2004-11-02 17:00 UTC] andreasnoever at yahoo dot de
Description:
------------
If a table contains fields like yes or no the
Generator.php script writes them to the ini file. After
that the parse_ini_file call in DataObject.php fails.
PHP Manual: parse_init_file:
Note: There are reserved words which must not be used as
keys for ini files. These include: null, yes, no, true,
and false.
[2005-04-27 12:08 UTC] mipo at amatrica dot lt
My suggestion would be to use some special symbols for reserved words, like: _yes_, 'yes', (yes), etc.
So generator should 'mark' reserved words with special symbols in ini file and later when parsing ini file, these special symbols should be stripped.