|
|
|
@ -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"); |
|
|
|
|