From: Sascha Schumann Date: Tue, 20 Mar 2001 12:50:27 +0000 (+0000) Subject: fix build X-Git-Tag: php-4.0.6RC1~642 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2ff136c8e98d52e0c8b2dbf4e136ee291a5c61a;p=php fix build --- 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");