mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Cleanup libxml_get_external_entity_loader() (#12893)
We can directly put the value into return_value instead of copying things around.
This commit is contained in:
@@ -1213,10 +1213,7 @@ PHP_FUNCTION(libxml_get_external_entity_loader)
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
if (ZEND_FCC_INITIALIZED(LIBXML(entity_loader_callback))) {
|
||||
zval tmp;
|
||||
zend_get_callable_zval_from_fcc(&LIBXML(entity_loader_callback), &tmp);
|
||||
RETVAL_COPY(&tmp);
|
||||
zval_ptr_dtor(&tmp);
|
||||
zend_get_callable_zval_from_fcc(&LIBXML(entity_loader_callback), return_value);
|
||||
return;
|
||||
}
|
||||
RETURN_NULL();
|
||||
|
||||
Reference in New Issue
Block a user