We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e90152b commit a53ea50Copy full SHA for a53ea50
ext/standard/string.c
@@ -3452,7 +3452,7 @@ PHP_FUNCTION(similar_text)
3452
{
3453
zend_string *t1, *t2;
3454
zval *percent = NULL;
3455
- bool compute_percentage = ZEND_NUM_ARGS() == 3;
+ bool compute_percentage = ZEND_NUM_ARGS() >= 3;
3456
size_t sim;
3457
3458
ZEND_PARSE_PARAMETERS_START(2, 3)
@@ -4831,8 +4831,8 @@ PHP_FUNCTION(parse_str)
4831
static bool php_tag_find(char *tag, size_t len, const char *set) {
4832
char c, *n;
4833
const char *t;
4834
- int state=0;
4835
- bool done=0;
+ int state = 0;
+ bool done = 0;
4836
char *norm;
4837
4838
if (len == 0) {
0 commit comments