PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_DataObject » Bug #2674

reserved words in ini files

Details

Submitted2004-11-02 17:00 UTC
Fromandreasnoever at yahoo dot de
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP Version5.0.1
OSlinux 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.