mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02: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:
parent
90d41cccfd
commit
90eb5679d2
1 changed files with 1 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue