Use ZEND_FCI_INITIALIZED macro

Instead of manually checking that the fci.size is different than 0
This commit is contained in:
George Peter Banyard 2020-05-11 18:42:46 +02:00
parent 00ef092335
commit 197cac65fd

View file

@ -1072,7 +1072,7 @@ PHP_FUNCTION(libxml_set_external_entity_loader)
_php_libxml_destroy_fci(&LIBXML(entity_loader).fci, &LIBXML(entity_loader).object);
if (fci.size > 0) { /* argument not null */
if (ZEND_FCI_INITIALIZED(fci)) { /* argument not null */
LIBXML(entity_loader).fci = fci;
Z_ADDREF(fci.function_name);
if (fci.object != NULL) {