summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorEdin Kadribasic <edink@php.net>2003-05-09 09:13:01 +0000
committerEdin Kadribasic <edink@php.net>2003-05-09 09:13:01 +0000
commit4aa1414623ec342acee2e78ab3c0055b50f66016 (patch)
treec59cd9232eaf219871ff97f475c028916ef7a06c /sapi
parentd758f2ea0b73c9b62171a2becaa4811e110833c8 (diff)
downloadphp-git-4aa1414623ec342acee2e78ab3c0055b50f66016.tar.gz
Reverting last patch (merge from sapi/apache).
Diffstat (limited to 'sapi')
-rw-r--r--sapi/apache_hooks/mod_php4.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sapi/apache_hooks/mod_php4.c b/sapi/apache_hooks/mod_php4.c
index 256712673c..6175514310 100644
--- a/sapi/apache_hooks/mod_php4.c
+++ b/sapi/apache_hooks/mod_php4.c
@@ -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
*/