diff options
author | foobar <sniper@php.net> | 2007-06-09 11:44:08 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2007-06-09 11:44:08 +0000 |
commit | f7d22b60f03ba0306e105feffb803ded42d00cda (patch) | |
tree | 15feca284545ea622b7b6af2710bc3309bfd12c1 /ext/standard/info.c | |
parent | 1351bc4e86cbf2375bef99c8f068b7e8bc7788a6 (diff) | |
download | php-git-f7d22b60f03ba0306e105feffb803ded42d00cda.tar.gz |
MFH:- Added php_ini_loaded_file() function which returns the path to the actual
php.ini in use.
Diffstat (limited to 'ext/standard/info.c')
-rw-r--r-- | ext/standard/info.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c index eb587366a0..878e832c67 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -1170,6 +1170,18 @@ PHP_FUNCTION(php_ini_scanned_files) } /* }}} */ +/* {{{ proto string php_ini_loaded_file(void) + Return the actual loaded ini filename */ +PHP_FUNCTION(php_ini_loaded_file) +{ + if (php_ini_opened_path) { + RETURN_STRING(php_ini_opened_path, 1); + } else { + RETURN_FALSE; + } +} +/* }}} */ + /* * Local variables: * tab-width: 4 |