Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003878 [Quercus] major always 02-05-10 05:02 05-11-10 16:51
Reporter ice-breaker View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 4.0.2
Summary 0003878: parse_ini_file does not replace PHP Constants
Description Trying to install the Zend Framework i encountered an implementation issue in the parse_ini_file function.
By default PHP Constants inside the ini file should be replaced by their value, but quercus doesn't do it.
Additional Information config.ini:
[group0]
val0 = VALUE
val2 = VALUE " is more than four"
val1 = VALUE is more than four
val3 = VALUE ' is more than four'
val4 = "VALUE is more than four"
VALUE = keys should not be replaced

php file:
<?php
define('VALUE', 5);
print_r(parse_ini_file('config.ini'));

expected output:
Array
(
    [val0] => 5
    [val2] => 5 is more than four
    [val1] => VALUE is more than four
    [val3] => VALUE ' is more than four'
    [val4] => VALUE is more than four
    [VALUE] => keys should not be replaced
)

actual output:
Array
(
    [val0] => 5
    [val2] => VALUE " is more than four"
    [val1] => VALUE is more than four
    [val3] => VALUE ' is more than four'
    [val4] => VALUE is more than four
    [VALUE] => keys should not be replaced
)
Attached Files

- Relationships

- Notes
(0004417)
ice-breaker
02-05-10 05:05

correction: quercus DOES replace php constant BUT NOT on string concatenations (val2)
 
(0004564)
nam
05-11-10 16:51

php/164w
 

- Issue History
Date Modified Username Field Change
02-05-10 05:02 ice-breaker New Issue
02-05-10 05:05 ice-breaker Note Added: 0004417
02-07-10 11:21 ice-breaker Issue Monitored: ice-breaker
02-08-10 10:22 fvlankvelt Issue Monitored: fvlankvelt
02-17-10 06:39 ulseth Issue Monitored: ulseth
05-11-10 16:51 nam Status new => assigned
05-11-10 16:51 nam Assigned To  => nam
05-11-10 16:51 nam Status assigned => closed
05-11-10 16:51 nam Note Added: 0004564
05-11-10 16:51 nam Resolution open => fixed
05-11-10 16:51 nam Fixed in Version  => 4.0.7


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
36 total queries executed.
29 unique queries executed.
Powered by Mantis Bugtracker