I'm not sure whether this is necessary or not. Is it guarenteed that get_module_conf()

will always return a value?  Even if there were no relevant directives at all?
This commit is contained in:
Zeev Suraski 2000-06-28 18:27:13 +00:00
parent da8843aa55
commit 01a8f4606e

View file

@ -448,7 +448,9 @@ int send_php(request_rec *r, int display_source_mode, char *filename)
return OK; return OK;
} }
per_dir_conf = (HashTable *) get_module_config(r->per_dir_config, &php4_module); 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 */ /* We don't accept OPTIONS requests, but take everything else */
if (r->method_number == M_OPTIONS) { if (r->method_number == M_OPTIONS) {