cvs: php4 /sapi/apache mod_php4.c

From: Date: Wed, 28 Jun 2000 18:27:13 +0000
Subject: cvs: php4 /sapi/apache mod_php4.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-533@lists.php.net to get a copy of this message
zeev Wed Jun 28 11:27:13 2000 EDT Modified files: /php4/sapi/apache mod_php4.c Log: 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? Index: php4/sapi/apache/mod_php4.c diff -u php4/sapi/apache/mod_php4.c:1.52 php4/sapi/apache/mod_php4.c:1.53 --- php4/sapi/apache/mod_php4.c:1.52 Mon Jun 26 11:05:50 2000 +++ php4/sapi/apache/mod_php4.c Wed Jun 28 11:27:13 2000 @@ -17,7 +17,7 @@ | PHP 4.0 patches by Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: mod_php4.c,v 1.52 2000/06/26 18:05:50 andrei Exp $ */ +/* $Id: mod_php4.c,v 1.53 2000/06/28 18:27:13 zeev Exp $ */ #define NO_REGEX_EXTRA_H #ifdef WIN32 @@ -448,7 +448,9 @@ 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) {

« previous php.cvs (#533) next »