summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2016-04-03 12:38:25 +0100
committerJoe Watkins <krakjoe@php.net>2016-04-03 12:38:25 +0100
commit91c10662c887c0e0a80844b1655cf329c5c58352 (patch)
treee2fe60d2c5fa5718fd62a00d6655bc9d317d0e26 /Zend/zend_compile.c
parent034e8ec02e263f5908b469bba1285e26c0a67bc4 (diff)
downloadphp-git-91c10662c887c0e0a80844b1655cf329c5c58352.tar.gz
fix #69537: __debugInfo with empty string for key gives error
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index bc33e07d1f..13e774eaba 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -1216,7 +1216,7 @@ ZEND_API int zend_unmangle_property_name_ex(const zend_string *name, const char
*class_name = NULL;
- if (ZSTR_VAL(name)[0] != '\0') {
+ if (!ZSTR_LEN(name) || ZSTR_VAL(name)[0] != '\0') {
*prop_name = ZSTR_VAL(name);
if (prop_len) {
*prop_len = ZSTR_LEN(name);