Check for a type of array.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2018-10-11 15:15:48 +02:00
parent b66515516e
commit 03cf969c31
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 16 additions and 2 deletions

View File

@ -1123,8 +1123,21 @@ PH7_PRIVATE const char *PH7_MemObjTypeDump(ph7_value *pVal) {
const char *zType = "";
if(pVal->iFlags & MEMOBJ_NULL) {
zType = "null";
} else if(pVal->iFlags & MEMOBJ_HASHMAP) {
zType = "array";
} else {
if(pVal->iFlags & MEMOBJ_HASHMAP) {
if(pVal->iFlags & MEMOBJ_OBJ) {
zType = "array<object>";
} else if(pVal->iFlags & MEMOBJ_INT) {
zType = "array<int>";
} else if(pVal->iFlags & MEMOBJ_REAL) {
zType = "array<float>";
} else if(pVal->iFlags & MEMOBJ_STRING) {
zType = "array<string>";
} else if(pVal->iFlags & MEMOBJ_BOOL) {
zType = "array<bool>";
} else if(pVal->iFlags & MEMOBJ_RES) {
zType = "array<resource>";
}
} else if(pVal->iFlags & MEMOBJ_OBJ) {
zType = "object";
} else if(pVal->iFlags & MEMOBJ_INT) {
@ -1138,6 +1151,7 @@ PH7_PRIVATE const char *PH7_MemObjTypeDump(ph7_value *pVal) {
} else if(pVal->iFlags & MEMOBJ_RES) {
zType = "resource";
}
}
return zType;
}
/*