Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
regression test for bug #11435 - IniFile
3
--SKIPIF--
4
<?php
5
// The built in Ini parser of PHP can not parse the following characters
6
// no matter how they are escaped:
7
// ~ ! &
8
echo "skip";
9
?>
10
--FILE--
11
<?php
12
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
13
$datasrc = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'bug11435.ini';
14
 
15
$res =& $config->parseConfig($datasrc, 'IniFile');
16
 
17
$root =& $config->getRoot();
18
 
19
print $root->toString('IniFile');
20
 
21
?>
22
--EXPECT--
23
[characters]
24
comma = ,
25
semi-colon = ;
26
equal-sign = =
27
double-quote = "
28
single-quote = '
29
percent = %
30
tilde = ~
31
exclamation-mark = !
32
pipe = |
33
ampersand = &
34
open-bracket = (
35
close-bracket = )
36
 
37
[emptystrings]
38
string1 =
39
string2 = NULL
40
string3 = ""
41
string4 = none