Fix var_dump() for mixed arrays.
All checks were successful
The build was successful.

This commit is contained in:
2018-11-13 20:24:55 +01:00
parent 7a34716298
commit e727453ccf
2 changed files with 10 additions and 2 deletions

View File

@@ -1125,7 +1125,9 @@ PH7_PRIVATE const char *PH7_MemObjTypeDump(ph7_value *pVal) {
zType = "null";
} else {
if(pVal->iFlags & MEMOBJ_HASHMAP) {
if(pVal->iFlags & MEMOBJ_OBJ) {
if(pVal->iFlags & MEMOBJ_MIXED) {
zType = "array(mixed, ";
} else if(pVal->iFlags & MEMOBJ_OBJ) {
zType = "array(object, ";
} else if(pVal->iFlags & MEMOBJ_INT) {
zType = "array(int, ";