diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index d0ca3da550e..2dcf8f2568f 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -2286,6 +2286,7 @@ PHP_FUNCTION(extract) if (getParameters(ht, 3, &var_array, &etype, &prefix) == FAILURE) { WRONG_PARAM_COUNT; } + convert_to_long(etype); extype = etype->value.lval; break;