#015309: A simple quote in an index hash, in ini files

Description:

When used with Configuration component, the following INI file brings an error :

Countries["CÔTE D'IVOIRE"]="Wybrze?e Ko?ci S?oniowej"

The error is :

Parse error: syntax error, unexpected T_STRING, expecting ']' in /var/www/activation/ezc/Configuration/src/ini/ini_reader.php(129) : eval()'d code on line 1

You have to escape the simple quote like this, to work :

Countries["CÔTE D\'IVOIRE"]="Wybrze?e Ko?ci S?oniowej"

But I think ini_reader should avoid this case by escaping quotes automatically...


Environment:

Operating System: Linux, Debian
PHP Version: 5.2.0-etch
Database and version: XXX
Browser (and version): XXX


- Attachments

No attachments for this issue.


- Comments

Fixed in rev. 10769.

#262620 by Derick Rethans on August 17th, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Configuration
Affects 1.3.3 - Configuration 1.3.3
Fix Versions 2009.2 sprint 2 - eZ components 2009.2 sprint 2
2009.2alpha1 - eZ components 2009.2alpha1
Reporter Xavier Gouley
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created August 17th, 2009
Updated August 17th, 2009
Resolved August 17th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels