@@ -6,14 +6,15 @@ zend_test
6
6
<?php
7
7
ini_set ('open_basedir ' , __DIR__ );
8
8
9
+ $ pathSeparator = PHP_OS_FAMILY !== 'Windows ' ? ': ' : '; ' ;
9
10
$ originalDir = __DIR__ ;
10
11
$ tmpDir = $ originalDir . '/gh10469_tmp ' ;
11
12
@mkdir ($ tmpDir , 0777 , true );
12
13
chdir ($ tmpDir );
13
- ini_set ('open_basedir ' , ini_get ('open_basedir ' ) . ' : . ' . DIRECTORY_SEPARATOR . '.. ' );
14
- ini_set ('open_basedir ' , ini_get ('open_basedir ' ) . ' : . ' . DIRECTORY_SEPARATOR . '.. ' . DIRECTORY_SEPARATOR );
15
- ini_set ('open_basedir ' , ini_get ('open_basedir ' ) . ' : ' . DIRECTORY_SEPARATOR . 'a ' . DIRECTORY_SEPARATOR );
16
- ini_set ('open_basedir ' , ini_get ('open_basedir ' ) . ' : . ' . DIRECTORY_SEPARATOR . 'a ' );
14
+ ini_set ('open_basedir ' , ini_get ('open_basedir ' ) . $ pathSeparator . ' . ' . DIRECTORY_SEPARATOR . '.. ' );
15
+ ini_set ('open_basedir ' , ini_get ('open_basedir ' ) . $ pathSeparator . ' . ' . DIRECTORY_SEPARATOR . '.. ' . DIRECTORY_SEPARATOR );
16
+ ini_set ('open_basedir ' , ini_get ('open_basedir ' ) . $ pathSeparator . ' . ' . DIRECTORY_SEPARATOR . 'a ' . DIRECTORY_SEPARATOR );
17
+ ini_set ('open_basedir ' , ini_get ('open_basedir ' ) . $ pathSeparator . ' . ' . DIRECTORY_SEPARATOR . 'a ' );
17
18
18
19
chdir ($ originalDir );
19
20
var_dump (ini_get ('open_basedir ' ));
@@ -24,5 +25,5 @@ var_dump(get_open_basedir());
24
25
@rmdir (__DIR__ . '/gh10469_tmp ' );
25
26
?>
26
27
--EXPECTF--
27
- string(%d) "%stests: .%e..: .%e..%e"
28
- string(%d) "%stests:% stests:% stests%e: %stests%egh10469_tmp%ea"
28
+ string(%d) "%stests%c .%e..%c .%e..%e%c.%ea%e%c.%ea "
29
+ string(%d) "%stests%c% stests%c% stests%e%c %stests%egh10469_tmp%ea"
0 commit comments