diff options
-rw-r--r-- | sapi/apache/mod_php4.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 514c11e05b..5463b3ade6 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -448,7 +448,9 @@ int send_php(request_rec *r, int display_source_mode, char *filename) return OK; } per_dir_conf = (HashTable *) get_module_config(r->per_dir_config, &php4_module); - zend_hash_apply((HashTable *) per_dir_conf, (int (*)(void *)) php_apache_alter_ini_entries); + if (per_dir_conf) { + zend_hash_apply((HashTable *) per_dir_conf, (int (*)(void *)) php_apache_alter_ini_entries); + } /* We don't accept OPTIONS requests, but take everything else */ if (r->method_number == M_OPTIONS) { |