cvs: php4 /sapi/apache mod_php4.c
| From: | Stanislav Malyshev | Date: | Tue, 13 Mar 2001 18:39:38 +0000 |
| Subject: | cvs: php4 /sapi/apache mod_php4.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4544@lists.php.net to get a copy of this message | ||
stas Tue Mar 13 10:39:38 2001 EDT
Modified files:
/php4/sapi/apache mod_php4.c
Log:
Fix off-by-one on config values set from Apache config
# It didn't really hurt, since the extra character was always \0,
# but the phpinfo() display came out ugly.
Index: php4/sapi/apache/mod_php4.c
diff -u php4/sapi/apache/mod_php4.c:1.91 php4/sapi/apache/mod_php4.c:1.92
--- php4/sapi/apache/mod_php4.c:1.91 Tue Mar 6 07:10:53 2001
+++ php4/sapi/apache/mod_php4.c Tue Mar 13 10:39:38 2001
@@ -17,7 +17,7 @@
| PHP 4.0 patches by Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: mod_php4.c,v 1.91 2001/03/06 15:10:53 zeev Exp $ */
+/* $Id: mod_php4.c,v 1.92 2001/03/13 18:39:38 stas Exp $ */
#define NO_REGEX_EXTRA_H
#ifdef WIN32
@@ -415,7 +415,7 @@
static int php_apache_alter_ini_entries(php_per_dir_entry *per_dir_entry)
{
- zend_alter_ini_entry(per_dir_entry->key, per_dir_entry->key_length+1,
per_dir_entry->value, per_dir_entry->value_length+1, per_dir_entry->type,
PHP_INI_STAGE_ACTIVATE);
+ zend_alter_ini_entry(per_dir_entry->key, per_dir_entry->key_length+1,
per_dir_entry->value, per_dir_entry->value_length, per_dir_entry->type,
PHP_INI_STAGE_ACTIVATE);
return 0;
}