PHP_INI_SYSTEM and httpd.conf

php.internals

Sean Coates

21 years ago
Hello core folks. Please see this table: http://php.net/manual/en/ini.php#AEN189095 As long as I can remember, the manual has said that PHP_INI_SYSTEM is settable in httpd.conf. I just ran some tests, and it seems that this is not the case. Seems these are only settable in php.ini. The manual even goes far as to distinguish between "php.ini only" (disable_classes, for example), and PHP_INI_SYSTEM. So, am I just missing something, or is the manual wrong? Could someone clarify in unambiguous terms the credentials for changing a setting that is PHP_INI_SYSTEM? (sorry for the crosspost) Thanks, S

Nuno Lopes

21 years ago
I can clearly set the PHP_INI_SYSTEM option in the httpd.conf. As stated in http://php.net/configuration.changes you should use the 'php_admin_xx' directive instead of 'php_xx'. AFAIK, those options marked with 'php.ini only' were considered too expensive to be set at run-time (they are hard-coded in the ini updater script - phpdoc/scripts/iniupdate). Nuno ----- Original Message -----

Sean Coates

21 years ago
> I can clearly set the PHP_INI_SYSTEM option in the httpd.conf. > As stated in http://php.net/configuration.changes you should use the > 'php_admin_xx' directive instead of 'php_xx'.
*cough* Yes, you're right. Sorry for the noise. S

Gabor Hojtsy

21 years ago
>> I can clearly set the PHP_INI_SYSTEM option in the httpd.conf. >> As stated in http://php.net/configuration.changes you should use the >> 'php_admin_xx' directive instead of 'php_xx'. > > *cough* > Yes, you're right. > Sorry for the noise.
So since Sean misunderstood something, this might be a good point to more clearly state somewhere? Goba