ID: 20008 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: PHP options/info functions Operating System: FreeBSD4.5 PHP Version: 4.2.3 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. Actually <VirtualHost> can overwrite the php.ini settings. Your problem is that you are using php_admin_flag instead of php_admin_value when changing a string value. Since php_admin_flag expects On/Off or 0/1 bolean values the string value you provide gets converted to 0. Hence the 0 value for upload_tmp_dir. Previous Comments: ------------------------------------------------------------------------ [2002-10-21 08:00:22] [EMAIL PROTECTED] Oh well yes, it shouldn't change it at all. Anyone tried this with PHP-4.3.0dev? ------------------------------------------------------------------------ [2002-10-21 07:56:08] [EMAIL PROTECTED] true, but that was not the reported bug ------------------------------------------------------------------------ [2002-10-21 07:53:50] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php upload_tmp_dir is PHP_INI_SYSTEM. PHP_INI_SYSTEM Entry can be set in php.ini or httpd.conf (but not in VHost blocks in httpd.conf). ------------------------------------------------------------------------ [2002-10-21 07:40:40] [EMAIL PROTECTED] upload_tmp_dir was set to '/clients/home/TMP' in php.ini I tried to redefine it in <VirtualHost> section via php_admin_flag (I missed that it's not allowed) it was changd to 0. I think that if a variable can't be changed in <VirtualHost> section, attempt to change it should not wipe it. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20008&edit=1