From: George Peter Banyard Date: Mon, 11 May 2020 16:42:46 +0000 (+0200) Subject: Use ZEND_FCI_INITIALIZED macro X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=197cac65fdf712effb19ad3e40688ceb7ebc7f7d;p=php Use ZEND_FCI_INITIALIZED macro Instead of manually checking that the fci.size is different than 0 --- diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index 09f8ae83ed..9ec25d6190 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -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) {