Skip to content

Commit d53dd88

Browse files
author
Derick Rethans
committed
- Drop requirement for php.ini-dist
- Adjust test script to hard code ini settings
1 parent 87e2718 commit d53dd88

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

run-tests.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,10 @@
9797
PHP_VERSION : " . PHP_VERSION . "
9898
PHP_OS : " . PHP_OS . "
9999
INI actual : " . realpath(get_cfg_var('cfg_file_path')) . "
100-
INI wanted : " . realpath('php.ini-dist') . "
101100
More .INIs : " . str_replace("\n","", php_ini_scanned_files()) . "
102101
=====================================================================
103102
";
104103

105-
// Make sure we are using the proper php.ini.
106-
107-
$php_ini = realpath("php.ini-dist");
108-
if (realpath(get_cfg_var('cfg_file_path')) != $php_ini) {
109-
error("php.ini-dist was not used!");
110-
}
111-
$php .= " -c $php_ini";
112-
113104
// Determine the tests to be run.
114105

115106
$test_to_run = array();

tests/strings/004.phpt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
--TEST--
22
highlight_string() buffering
33
--POST--
4+
--INI--
5+
highlight.string=#DD0000
6+
highlight.comment=#FF9900
7+
highlight.keyword=#007700
8+
highlight.bg=#FFFFFF
9+
highlight.default=#0000BB
10+
highlight.html=#000000
411
--GET--
512
--FILE--
613
<?php
@@ -10,8 +17,8 @@ echo "\n[$var]\n";
1017
?>
1118
--EXPECT--
1219
<code><font color="#000000">
13-
&lt;br /&gt;<font color="#0000CC">&lt;?php </font><font color="#006600">echo </font><font color="#CC0000">"foo"</font><font color="#006600">; </font><font color="#0000CC">?&gt;</font>&lt;br /&gt;</font>
20+
&lt;br /&gt;<font color="#0000BB">&lt;?php </font><font color="#007700">echo </font><font color="#DD0000">"foo"</font><font color="#007700">; </font><font color="#0000BB">?&gt;</font>&lt;br /&gt;</font>
1421
</code>
1522
[<code><font color="#000000">
16-
&lt;br /&gt;<font color="#0000CC">&lt;?php </font><font color="#006600">echo </font><font color="#CC0000">"bar"</font><font color="#006600">; </font><font color="#0000CC">?&gt;</font>&lt;br /&gt;</font>
23+
&lt;br /&gt;<font color="#0000BB">&lt;?php </font><font color="#007700">echo </font><font color="#DD0000">"bar"</font><font color="#007700">; </font><font color="#0000BB">?&gt;</font>&lt;br /&gt;</font>
1724
</code>]

0 commit comments

Comments
 (0)