summaryrefslogtreecommitdiff
path: root/Zend/zend_ini.c
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2018-08-19 01:32:00 -0300
committerPeter Kokot <peterkokot@gmail.com>2018-12-03 01:22:14 +0100
commitcdd8368d6f3f000a2e30a6be9976c5539f10fe85 (patch)
tree8f680d0c1fb552fdcbdbf3d49427c811fa789bf9 /Zend/zend_ini.c
parent6c16f9b69c1951392d5d0ac89d3fbd2b318af118 (diff)
downloadphp-git-cdd8368d6f3f000a2e30a6be9976c5539f10fe85.tar.gz
Clean up unnecessary ternary expressions and simplify some returns
- Simplify conditions - Use ZEND_HASH_APPLY_* instead of hard-coded booleans - Use ZEND_NORMALIZE_BOOL - Drop sign in favor of ZEND_NORMALIZE_BOOL
Diffstat (limited to 'Zend/zend_ini.c')
-rw-r--r--Zend/zend_ini.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c
index b8185950ae..e3d61dea8c 100644
--- a/Zend/zend_ini.c
+++ b/Zend/zend_ini.c
@@ -36,11 +36,8 @@ static int zend_remove_ini_entries(zval *el, void *arg) /* {{{ */
{
zend_ini_entry *ini_entry = (zend_ini_entry *)Z_PTR_P(el);
int module_number = *(int *)arg;
- if (ini_entry->module_number == module_number) {
- return 1;
- } else {
- return 0;
- }
+
+ return ini_entry->module_number == module_number;
}
/* }}} */