Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.5

Bug #2674 reserved words in ini files
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 Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 22 + 28 = ?

 [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.


 [2004-11-16 01:43 UTC] alan_k
the fixes to this are probably a) exit when generating and these are found. (when writing to ini) b) allow generator to create the keys() / table() methods. (which dont suffer the same limitations)
 [2004-11-20 03:12 UTC] alan_k
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on In case this was a website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.
 [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.