]> granicus.if.org Git - php/commitdiff
Reverting last patch (merge from sapi/apache).
authorEdin Kadribasic <edink@php.net>
Fri, 9 May 2003 09:13:01 +0000 (09:13 +0000)
committerEdin Kadribasic <edink@php.net>
Fri, 9 May 2003 09:13:01 +0000 (09:13 +0000)
sapi/apache_hooks/mod_php4.c

index 256712673cc67b375840fea9e421854e11bdc242..6175514310804fbf140b01eddffe92f4e3dd275e 100644 (file)
@@ -634,12 +634,6 @@ static int send_php(request_rec *r, int display_source_mode, char *filename)
        int retval;
        php_per_dir_config *per_dir_conf;
        TSRMLS_FETCH();
-
-       per_dir_conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php4_module);
-       if (per_dir_conf) {
-               zend_hash_apply((HashTable *) per_dir_conf->ini_settings, (apply_func_t) php_apache_alter_ini_entries TSRMLS_CC);
-       }
-
        if (AP(in_request)) {
                zend_file_handle fh;
 
@@ -663,6 +657,11 @@ static int send_php(request_rec *r, int display_source_mode, char *filename)
                        return DECLINED;
                }
 
+               per_dir_conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php4_module);
+               if (per_dir_conf) {
+                       zend_hash_apply((HashTable *) per_dir_conf->ini_settings, (apply_func_t) php_apache_alter_ini_entries TSRMLS_CC);
+               }
+
                /* If PHP parser engine has been turned off with an "engine off"
                 * directive, then decline to handle this request
                 */