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 28a3ff3 commit 2d46c38Copy full SHA for 2d46c38
ext/standard/string.c
@@ -3448,7 +3448,7 @@ PHP_FUNCTION(similar_text)
3448
{
3449
zend_string *t1, *t2;
3450
zval *percent = NULL;
3451
- bool compute_percentage = ZEND_NUM_ARGS() == 3;
+ bool compute_percentage = ZEND_NUM_ARGS() >= 3;
3452
size_t sim;
3453
3454
ZEND_PARSE_PARAMETERS_START(2, 3)
@@ -4827,8 +4827,8 @@ PHP_FUNCTION(parse_str)
4827
static bool php_tag_find(char *tag, size_t len, const char *set) {
4828
char c, *n;
4829
const char *t;
4830
- int state=0;
4831
- bool done=0;
+ int state = 0;
+ bool done = 0;
4832
char *norm;
4833
4834
if (len == 0) {
0 commit comments