diff --git a/ext/standard/string.c b/ext/standard/string.c index c2acc16d14..98b6547b58 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -3221,6 +3221,7 @@ PHP_FUNCTION(similar_text) } if (ac > 2) { + percent = Z_REFVAL_P(percent); convert_to_double_ex(percent); }