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)    
Subscription  


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

Comments

 [2004-11-16 01:43 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-11-20 03:12 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [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.