Skip to content

Commit 3b609a1

Browse files
authored
Zend: Replace RETVAL_TRUE/RETVAL_FALSE with RETVAL_BOOL (#21277)
1 parent 7158e63 commit 3b609a1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Zend/zend_builtin_functions.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2228,11 +2228,7 @@ ZEND_FUNCTION(extension_loaded)
22282228
}
22292229

22302230
lcname = zend_string_tolower(extension_name);
2231-
if (zend_hash_exists(&module_registry, lcname)) {
2232-
RETVAL_TRUE;
2233-
} else {
2234-
RETVAL_FALSE;
2235-
}
2231+
RETVAL_BOOL(zend_hash_exists(&module_registry, lcname));
22362232
zend_string_release_ex(lcname, 0);
22372233
}
22382234
/* }}} */

0 commit comments

Comments
 (0)