Skip to content

Commit b4171bc

Browse files
committed
Promote warning to exception in the levenshtein() function
1 parent ed78fb6 commit b4171bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/levenshtein.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ PHP_FUNCTION(levenshtein)
123123
}
124124

125125
if (distance < 0 && /* TODO */ ZEND_NUM_ARGS() != 3) {
126-
php_error_docref(NULL, E_WARNING, "Argument string(s) too long");
126+
zend_value_error("Argument string(s) too long");
127127
}
128128

129129
RETURN_LONG(distance);

0 commit comments

Comments
 (0)