From cf2fc66b0289dc7a34a0d9c0e67bccb8e97472bd Mon Sep 17 00:00:00 2001 From: Ville Hukkamaki Date: Wed, 22 Aug 2018 06:19:14 +0200 Subject: Fixed bug #76777 and added test Set undefined values to null rather than undefined. --- ext/libxml/libxml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/libxml/libxml.c') diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index 226228bbb4..85f239d5c7 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -591,12 +591,12 @@ static xmlParserInputPtr _php_libxml_external_entity_loader(const char *URL, if (ID != NULL) { ZVAL_STRING(¶ms[0], ID); } else { - ZVAL_UNDEF(¶ms[0]); + ZVAL_NULL(¶ms[0]); } if (URL != NULL) { ZVAL_STRING(¶ms[1], URL); } else { - ZVAL_UNDEF(¶ms[1]); + ZVAL_NULL(¶ms[1]); } ctxzv = ¶ms[2]; array_init_size(ctxzv, 4); -- cgit v1.2.1