Skip to content

Commit 197cac6

Browse files
committed
Use ZEND_FCI_INITIALIZED macro
Instead of manually checking that the fci.size is different than 0
1 parent 00ef092 commit 197cac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/libxml/libxml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ PHP_FUNCTION(libxml_set_external_entity_loader)
10721072

10731073
_php_libxml_destroy_fci(&LIBXML(entity_loader).fci, &LIBXML(entity_loader).object);
10741074

1075-
if (fci.size > 0) { /* argument not null */
1075+
if (ZEND_FCI_INITIALIZED(fci)) { /* argument not null */
10761076
LIBXML(entity_loader).fci = fci;
10771077
Z_ADDREF(fci.function_name);
10781078
if (fci.object != NULL) {

0 commit comments

Comments
 (0)