diff options
-rw-r--r-- | ext/yp/yp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/yp/yp.c b/ext/yp/yp.c index cc7319ef5e..c41c609d95 100644 --- a/ext/yp/yp.c +++ b/ext/yp/yp.c @@ -214,6 +214,7 @@ PHP_FUNCTION(yp_next) { static int php_foreach_all (int instatus, char *inkey, int inkeylen, char *inval, int invallen, char *indata) { int r; + CLS_FETCH(); zval *status, *key, *value; zval **args [3] = { &status, &key, &value }; @@ -228,8 +229,6 @@ static int php_foreach_all (int instatus, char *inkey, int inkeylen, char *inval MAKE_STD_ZVAL (value); ZVAL_STRINGL (value, inval, invallen, 1); - CLS_FETCH(); - if(call_user_function_ex(CG(function_table), NULL, *((zval **)indata), &retval, 3, args, 0, NULL) != SUCCESS) { zend_error(E_ERROR, "Function call failed"); |