diff options
author | George Peter Banyard <girgias@php.net> | 2020-05-11 18:42:46 +0200 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2020-05-16 00:36:15 +0200 |
commit | 197cac65fdf712effb19ad3e40688ceb7ebc7f7d (patch) | |
tree | 2e916ac7d6395d62f389e0ad5558b5b8dceb93dc /ext/libxml | |
parent | 00ef092335946d47817fa307f9cf570f236bc006 (diff) | |
download | php-git-197cac65fdf712effb19ad3e40688ceb7ebc7f7d.tar.gz |
Use ZEND_FCI_INITIALIZED macro
Instead of manually checking that the fci.size is different than 0
Diffstat (limited to 'ext/libxml')
-rw-r--r-- | ext/libxml/libxml.c | 2 |
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) { |