[PHP-DEV] Changing php.ini values in SunONE webserver question
According to bug #28878 please read the last comment: http://bugs.php.net/bug.php?id=28878 The user wants to set doc_root or open_basedir from the obj.conf of his webserver. He cannot do this because the NSAPI plugin changes only PHP_INI_USER values: if (zend_alter_ini_entry(entry-param-name, strlen(entry-param-name)+1, entry-param-value, strlen(entry-param-value), PHP_INI_USER, PHP_INI_STAGE_RUNTIME)==FAILURE) { log_error(LOG_WARN, pblock_findval(fn, NSG(pb)), NSG(sn), NSG(rq), Cannot change php.ini key \%s\ to \%s\, entry-param-name, entry-param-value); } NSAPI is multithreaded so changing of SYSTEM values reflects to other threads or not? In my thoughts at PHP_INI_STAGE_RUNTIME you can only change PHP_INI_USER variables or is that wrong? - Uwe Schindler [EMAIL PROTECTED] - http://www.php.net NSAPI SAPI developer Erlangen, Germany -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Changing php.ini values in SunONE webserver question
Its no problem... :) Works correct. Changed. At 11:58 23.06.2004, Uwe Schindler wrote: According to bug #28878 please read the last comment: http://bugs.php.net/bug.php?id=28878 The user wants to set doc_root or open_basedir from the obj.conf of his webserver. He cannot do this because the NSAPI plugin changes only PHP_INI_USER values: if (zend_alter_ini_entry(entry-param-name, strlen(entry-param-name)+1, entry-param-value, strlen(entry-param-value), PHP_INI_USER, PHP_INI_STAGE_RUNTIME)==FAILURE) { log_error(LOG_WARN, pblock_findval(fn, NSG(pb)), NSG(sn), NSG(rq), Cannot change php.ini key \%s\ to \%s\, entry-param-name, entry-param-value); } NSAPI is multithreaded so changing of SYSTEM values reflects to other threads or not? In my thoughts at PHP_INI_STAGE_RUNTIME you can only change PHP_INI_USER variables or is that wrong? - Uwe Schindler [EMAIL PROTECTED] - http://www.php.net NSAPI SAPI developer Erlangen, Germany -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php