When the php script is running through command line this parameter will be set to '0' by default.
The same for debugging mode and internal scripts.
http://php.net/manual/en/info.configuration.php
Robert Poz
"When running PHP from the command line the default setting is 0." - as I understand the default value is 0 , but once it's set to different value it should have not be default anymore. Default value in computer systems means usually value for not directly defined values for some properties - in this case shouldn't it be different!
According to doc above, it's all messed up - means that in CentOS the default PHP binary is compiled with --disable-cli, which totally doesn't make sense in context of existence of /etc/php5/cli/php.ini config file.
Sergey Tsoy
What does it mean "PHP binary is compiled with --disable-cli"?
Robert Poz
./configure command configures source code for compilation process (make).
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.
When the php script is running through command line this parameter will be set to '0' by default. The same for debugging mode and internal scripts. http://php.net/manual/en/info.configuration.php
"When running PHP from the command line the default setting is 0." - as I understand the default value is 0 , but once it's set to different value it should have not be default anymore. Default value in computer systems means usually value for not directly defined values for some properties - in this case shouldn't it be different!
Try this one
php -c /etc/php5/cli/php.ini - f test.php
Still the same:
; Note: This directive is hardcoded to 0 for the CLI SAPI
So for command line apps it's always 0
Shouldn't it be overridden by
/etc/php5/cli/php.ini
definitions?http://php.net/manual/en/features.commandline.introduction.php
According to doc above, it's all messed up - means that in CentOS the default PHP binary is compiled with
--disable-cli
, which totally doesn't make sense in context of existence of/etc/php5/cli/php.ini
config file.What does it mean "PHP binary is compiled with --disable-cli"?
./configure
command configures source code for compilation process (make
).