1--TEST-- 2Bug #73124 (php_ini_scanned_files relied on PHP_CONFIG_FILE_SCAN_DIR) 3--SKIPIF-- 4<?php 5if (!empty(PHP_CONFIG_FILE_SCAN_DIR)) die("Skip: PHP_CONFIG_FILE_SCAN_DIR must not be available"); 6?> 7--FILE-- 8<?php 9 $tempDir = sys_get_temp_dir(); 10 putenv('PHP_INI_SCAN_DIR='.$tempDir); 11 12 $inifile = $tempDir.DIRECTORY_SEPARATOR.'scan-dir.ini'; 13 @unlink($inifile); 14 file_put_contents($inifile, "\n"); 15 16 $php = getenv('TEST_PHP_EXECUTABLE'); 17 passthru('"'.$php.'" -r "print_r(php_ini_scanned_files());"'); 18 19 putenv('PHP_INI_SCAN_DIR='); 20 @unlink($inifile); 21?> 22--EXPECTREGEX-- 23.*[\/\\]scan-dir\.ini.*|.*[\/\\]scan-dir\.ini 24Done 25