Re: [RFC] php-cli: option to ignore php.ini
| From: | (Marcus Börger) | Date: | Tue, 12 Nov 2002 21:04:40 +0000 |
| Subject: | Re: [RFC] php-cli: option to ignore php.ini | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-90891@lists.php.net to get a copy of this message | ||
Implemented:
[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 startupAt 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