mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Zend: Replace RETVAL_TRUE/RETVAL_FALSE with RETVAL_BOOL (#21277)
This commit is contained in:
@@ -2228,11 +2228,7 @@ ZEND_FUNCTION(extension_loaded)
|
||||
}
|
||||
|
||||
lcname = zend_string_tolower(extension_name);
|
||||
if (zend_hash_exists(&module_registry, lcname)) {
|
||||
RETVAL_TRUE;
|
||||
} else {
|
||||
RETVAL_FALSE;
|
||||
}
|
||||
RETVAL_BOOL(zend_hash_exists(&module_registry, lcname));
|
||||
zend_string_release_ex(lcname, 0);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
Reference in New Issue
Block a user