summaryrefslogtreecommitdiff
path: root/ext/libxml/libxml.c
diff options
context:
space:
mode:
authorVille Hukkamaki <vhu@iki.fi>2018-08-22 06:19:14 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2018-08-22 12:51:06 +0200
commitcf2fc66b0289dc7a34a0d9c0e67bccb8e97472bd (patch)
tree5126b82f0bfa80856d04c93fb1fb452a16b0c3bd /ext/libxml/libxml.c
parent4c542e6c13ca0d1b3944efee715a4dadb4794c7c (diff)
downloadphp-git-cf2fc66b0289dc7a34a0d9c0e67bccb8e97472bd.tar.gz
Fixed bug #76777 and added test
Set undefined values to null rather than undefined.
Diffstat (limited to 'ext/libxml/libxml.c')
-rw-r--r--ext/libxml/libxml.c4
1 files changed, 2 insertions, 2 deletions
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(&params[0], ID);
} else {
- ZVAL_UNDEF(&params[0]);
+ ZVAL_NULL(&params[0]);
}
if (URL != NULL) {
ZVAL_STRING(&params[1], URL);
} else {
- ZVAL_UNDEF(&params[1]);
+ ZVAL_NULL(&params[1]);
}
ctxzv = &params[2];
array_init_size(ctxzv, 4);