summaryrefslogtreecommitdiff
path: root/ext/libxml/libxml.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/libxml/libxml.c')
-rw-r--r--ext/libxml/libxml.c2
1 files changed, 1 insertions, 1 deletions
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) {