mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
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:
parent
da8843aa55
commit
01a8f4606e
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue