summaryrefslogtreecommitdiff
path: root/ext/satellite/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/satellite/enum.c')
-rw-r--r--ext/satellite/enum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/satellite/enum.c b/ext/satellite/enum.c
index 197d1e2c5a..10abaa0004 100644
--- a/ext/satellite/enum.c
+++ b/ext/satellite/enum.c
@@ -96,14 +96,14 @@ zend_bool OrbitEnum_Constructor(OrbitEnum ** ppEnum, int parameterCount,
}
/* validate parameter types */
- if (ppParameters[0]->type != IS_STRING)
+ if (ppPZ_TYPE_P(arameters[0]) != IS_STRING)
goto error;
/* find type information */
- p_enum->mpEnumType = TypeManager_FindEnum(ppParameters[0]->value.str.val);
+ p_enum->mpEnumType = TypeManager_FindEnum(ppPZ_STRVAL_P(arameters[0]));
if (p_enum->mpEnumType == NULL)
{
- zend_error(E_WARNING, "(Satellite) unknown enum '%s'", ppParameters[0]->value.str.val);
+ zend_error(E_WARNING, "(Satellite) unknown enum '%s'", ppPZ_STRVAL_P(arameters[0]));
goto error;
}