com php-src: made the apache ini holders to be zend_bool: sapi/apache2handler/php_apache.h sapi/apache2handl er/php_functions.c

From: Date: Mon, 15 Dec 2014 12:49:46 +0000
Subject: com php-src: made the apache ini holders to be zend_bool: sapi/apache2handler/php_apache.h sapi/apache2handl er/php_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-83704@lists.php.net to get a copy of this message
Commit: 178363cbff9cc2366b75eb11fd61473da238f7c6 Author: Anatol Belski <ab@php.net> Mon, 15 Dec 2014 13:49:46 +0100 Parents: 44ae32ad55b9ceee9eb980edefcc62df6cff3eef Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=178363cbff9cc2366b75eb11fd61473da238f7c6 Log: made the apache ini holders to be zend_bool since they're documented to be so and we spare 16 byte Changed paths: M sapi/apache2handler/php_apache.h M sapi/apache2handler/php_functions.c Diff: diff --git a/sapi/apache2handler/php_apache.h b/sapi/apache2handler/php_apache.h index f6f4f7a..22eabaa 100644 --- a/sapi/apache2handler/php_apache.h +++ b/sapi/apache2handler/php_apache.h @@ -70,9 +70,9 @@ void php_ap2_register_hook(apr_pool_t *p); #define APR_ARRAY_FOREACH_CLOSE() }} typedef struct { - long engine; - long xbithack; - long last_modified; + zend_bool engine; + zend_bool xbithack; + zend_bool last_modified; } php_apache2_info_struct; extern zend_module_entry apache2_module_entry; diff --git a/sapi/apache2handler/php_functions.c b/sapi/apache2handler/php_functions.c index d038f9e..76bbad6 100644 --- a/sapi/apache2handler/php_functions.c +++ b/sapi/apache2handler/php_functions.c @@ -532,9 +532,9 @@ static const zend_function_entry apache_functions[] = { }; PHP_INI_BEGIN() - STD_PHP_INI_ENTRY("xbithack", "0", PHP_INI_ALL, OnUpdateLong, xbithack, php_apache2_info_struct, php_apache2_info) - STD_PHP_INI_ENTRY("engine", "1", PHP_INI_ALL, OnUpdateLong, engine, php_apache2_info_struct, php_apache2_info) - STD_PHP_INI_ENTRY("last_modified", "0", PHP_INI_ALL, OnUpdateLong, last_modified, php_apache2_info_struct, php_apache2_info) + STD_PHP_INI_ENTRY("xbithack", "0", PHP_INI_ALL, OnUpdateBool, xbithack, php_apache2_info_struct, php_apache2_info) + STD_PHP_INI_ENTRY("engine", "1", PHP_INI_ALL, OnUpdateBool, engine, php_apache2_info_struct, php_apache2_info) + STD_PHP_INI_ENTRY("last_modified", "0", PHP_INI_ALL, OnUpdateBool, last_modified, php_apache2_info_struct, php_apache2_info) PHP_INI_END() static PHP_MINIT_FUNCTION(apache)

« previous php.cvs (#83704) next »