cvs: php4 /sapi/apache2filter apache_config.c
| From: | Ilia Alshanetsky | Date: | Tue, 22 Oct 2002 14:02:17 +0000 |
| Subject: | cvs: php4 /sapi/apache2filter apache_config.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15148@lists.php.net to get a copy of this message | ||
iliaa Tue Oct 22 10:02:17 2002 EDT
Modified files:
/php4/sapi/apache2filter apache_config.c
Log:
Fixed a bug that caused the values of options/flags set via
httpd.conf/.htaccess and other apache methods to contain a \0 as part of the
value.
Index: php4/sapi/apache2filter/apache_config.c
diff -u php4/sapi/apache2filter/apache_config.c:1.23 php4/sapi/apache2filter/apache_config.c:1.24
--- php4/sapi/apache2filter/apache_config.c:1.23 Tue Oct 22 08:20:12 2002
+++ php4/sapi/apache2filter/apache_config.c Tue Oct 22 10:02:14 2002
@@ -160,9 +160,9 @@
zend_hash_move_forward(&d->config)) {
zend_hash_get_current_data(&d->config, (void **) &data);
phpapdebug((stderr, "APPLYING (%s)(%s)\n", str, data->value));
- if (zend_alter_ini_entry(str, str_len, data->value, data->value_len + 1,
- data->status, PHP_INI_STAGE_RUNTIME) == FAILURE)
+ if (zend_alter_ini_entry(str, str_len, data->value, data->value_len, data->status,
PHP_INI_STAGE_RUNTIME) == FAILURE) {
phpapdebug((stderr, "..FAILED\n"));
+ }
}
}