summaryrefslogtreecommitdiff
path: root/ext/satellite/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/satellite/struct.c')
-rw-r--r--ext/satellite/struct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/satellite/struct.c b/ext/satellite/struct.c
index e7ffbf7daa..6c85af2d0a 100644
--- a/ext/satellite/struct.c
+++ b/ext/satellite/struct.c
@@ -240,11 +240,11 @@ zend_bool OrbitStruct_Constructor(OrbitStruct ** ppStruct,
}
/* validate parameter types */
- if (ppParameters[0]->type != IS_STRING)
+ if (ppPZ_TYPE_P(arameters[0]) != IS_STRING)
goto error;
/* initialize struct */
- if (!OrbitStruct_Initialize(ppParameters[0]->value.str.val, p_struct))
+ if (!OrbitStruct_Initialize(ppPZ_STRVAL_P(arameters[0]), p_struct))
goto error;
*ppStruct = p_struct;