1--TEST--
2php_ini_loaded_file() function
3--FILE--
4<?php
5    $inifile = __DIR__.DIRECTORY_SEPARATOR.'loaded.ini';
6    $php = '"'.getenv('TEST_PHP_EXECUTABLE').'"';
7    $code = '"var_dump(php_ini_loaded_file());"';
8
9    // No ini file
10    passthru($php.' -n -r '.$code);
11
12    // Specified ini file
13    passthru($php.' -c "'.$inifile.'" -r '.$code);
14?>
15--EXPECTREGEX--
16bool\(false\)
17string\(\d+\) ".*[\/\\]loaded\.ini"
18