From 197cac65fdf712effb19ad3e40688ceb7ebc7f7d Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Mon, 11 May 2020 18:42:46 +0200 Subject: [PATCH] Use ZEND_FCI_INITIALIZED macro Instead of manually checking that the fci.size is different than 0 --- ext/libxml/libxml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.40.0