[marcus@zaphod php4-HEAD]$ php -r 'var_dump(get_cfg_var("cfg_file_path"));var_dump(php_ini_scanned_files());'
string(20) "/home/marcus/php.ini"
bool(false)
[marcus@zaphod php4-HEAD]$ php -n -r 'var_dump(get_cfg_var("cfg_file_path"));var_dump(php_ini_scanned_files());'
bool(false)
bool(false)
[marcus@zaphod php4-HEAD]$ php -c x -n -r 'var_dump(get_cfg_var("cfg_file_path"));var_dump(php_ini_scanned_files());'
You cannot use both -n and -c switch. Use -h for help.
marcus
At 13:31 11.11.2002, Wez Furlong wrote:
What are your opinions for having some option to prevent the loading/parsing of php.ini for the CLI version of PHP?-n "No Ini File" - skips parsing php.ini on startup At the moment, I'm using "-c DOESNOTEXIST" to achieve the same result, but this is a bit hacky. --Wez. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php