summaryrefslogtreecommitdiff
path: root/Zend/zend_ini.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-04-21 18:25:34 +0400
committerDmitry Stogov <dmitry@zend.com>2014-04-21 18:25:34 +0400
commit72c287bd232ef3a0dc5ae76a4b5b5879a8ee7786 (patch)
tree8faa259c298da79116fac7e6efc370434af70f6d /Zend/zend_ini.c
parentafe66d89a122d0349f56ddd4c4abfd5d2da68f19 (diff)
downloadphp-git-72c287bd232ef3a0dc5ae76a4b5b5879a8ee7786.tar.gz
Combine HashTable.flags and HashTable.nApplyCount into single 32-bit word
Diffstat (limited to 'Zend/zend_ini.c')
-rw-r--r--Zend/zend_ini.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c
index 4ac379ca91..883a6bf84b 100644
--- a/Zend/zend_ini.c
+++ b/Zend/zend_ini.c
@@ -99,9 +99,7 @@ ZEND_API int zend_ini_startup(TSRMLS_D) /* {{{ */
EG(ini_directives) = registered_zend_ini_directives;
EG(modified_ini_directives) = NULL;
EG(error_reporting_ini_entry) = NULL;
- if (zend_hash_init_ex(registered_zend_ini_directives, 100, NULL, _free_ptr, 1, 0) == FAILURE) {
- return FAILURE;
- }
+ zend_hash_init_ex(registered_zend_ini_directives, 128, NULL, _free_ptr, 1, 0);
return SUCCESS;
}
/* }}} */
@@ -140,9 +138,7 @@ ZEND_API int zend_copy_ini_directives(TSRMLS_D) /* {{{ */
EG(modified_ini_directives) = NULL;
EG(error_reporting_ini_entry) = NULL;
EG(ini_directives) = (HashTable *) malloc(sizeof(HashTable));
- if (zend_hash_init_ex(EG(ini_directives), registered_zend_ini_directives->nNumOfElements, NULL, NULL, 1, 0) == FAILURE) {
- return FAILURE;
- }
+ zend_hash_init_ex(EG(ini_directives), registered_zend_ini_directives->nNumOfElements, NULL, NULL, 1, 0);
zend_hash_copy(EG(ini_directives), registered_zend_ini_directives, NULL);
return SUCCESS;
}