Bug #17917 Updated: php_admin_value not allowed here

From: Date: Sat, 22 Jun 2002 15:11:25 +0000
Subject: Bug #17917 Updated: php_admin_value not allowed here
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11793@lists.php.net to get a copy of this message
ID: 17917 Updated by: matt@haught.com Reported By: matt@haught.com -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: FreeBSD 4.4-RELEASE PHP Version: 4.2.1 New Comment: I manually added the patch and now it is working. I was trying to set the open_basedir setting inside just a <VirtualHost>. It works now that I applied the patch and it is refected in the output of phpinfo(). Previous Comments: ------------------------------------------------------------------------ [2002-06-22 08:26:42] sander@php.net Hm, don't know if this is ok but try this patch: Index: apache_config.c =================================================================== RCS file: /repository/php4/sapi/apache2filter/apache_config.c,v retrieving revision 1.21 diff -u -r1.21 apache_config.c --- apache_config.c 17 May 2002 05:16:18 -0000 1.21 +++ apache_config.c 22 Jun 2002 12:23:55 -0000 @@ -165,9 +165,9 @@ "PHP Value Modifier"), AP_INIT_TAKE2("php_flag", php_apache_flag_handler, NULL, OR_OPTIONS, "PHP Flag Modifier"), - AP_INIT_TAKE2("php_admin_value", php_apache_admin_value_handler, NULL, ACCESS_CONF, + AP_INIT_TAKE2("php_admin_value", php_apache_admin_value_handler, NULL, ACCESS_CONF|RSRC_CONF, "PHP Value Modifier (Admin)"), - AP_INIT_TAKE2("php_admin_flag", php_apache_admin_flag_handler, NULL, ACCESS_CONF, + AP_INIT_TAKE2("php_admin_flag", php_apache_admin_flag_handler, NULL, ACCESS_CONF|RSRC_CONF, "PHP Flag Modifier (Admin)"), AP_INIT_TAKE1("PHPINIDir", php_apache_phpini_set, NULL, RSRC_CONF, "Directory containing the php.ini file"), This should make the php_admin_value directive allowed inside and outside <location> or <directory> blocks. If this patch is too mangled by this bug system, you can contact me directly and I'll send it you by mail. ------------------------------------------------------------------------ [2002-06-21 21:02:13] matt@haught.com This is with apache-2.0.39 ------------------------------------------------------------------------ [2002-06-21 20:56:48] matt@haught.com First off I AM using the lastest snapshot from snaps.php.net dated 200206211500. This bug was closed but it is still there! php_value and php_flag ARE working and those changes are reflected in phpinfo(), but the admin ones (php_admin_value and php_admin_flag) are not accepted by apache giving the error: Syntax error on line 84 of /usr/local/etc/apache2/vhosts.conf: php_admin_value not allowed here AGAIN, THIS IS WITH THE LATEST SNAPSHOT php4-200206211500. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17917&edit=1

« previous php.bugs (#11793) next »