diff --git a/ext/yp/yp.c b/ext/yp/yp.c index d0205ecd258..7e680920f2a 100644 --- a/ext/yp/yp.c +++ b/ext/yp/yp.c @@ -215,10 +215,14 @@ static int php_foreach_all (int instatus, char *inkey, int inkeylen, char *inval { int r; zval *status, *key, *value; - zval **args [3] = { &status, &key, &value }; + zval **args [3]; zval *retval; CLS_FETCH(); + args[0] = &status; + args[1] = &key; + args[2] = &value; + MAKE_STD_ZVAL (status); ZVAL_LONG (status, ypprot_err (instatus));