Skip to content

Commit a53ea50

Browse files
committed
Review nits
1 parent e90152b commit a53ea50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/standard/string.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3452,7 +3452,7 @@ PHP_FUNCTION(similar_text)
34523452
{
34533453
zend_string *t1, *t2;
34543454
zval *percent = NULL;
3455-
bool compute_percentage = ZEND_NUM_ARGS() == 3;
3455+
bool compute_percentage = ZEND_NUM_ARGS() >= 3;
34563456
size_t sim;
34573457

34583458
ZEND_PARSE_PARAMETERS_START(2, 3)
@@ -4831,8 +4831,8 @@ PHP_FUNCTION(parse_str)
48314831
static bool php_tag_find(char *tag, size_t len, const char *set) {
48324832
char c, *n;
48334833
const char *t;
4834-
int state=0;
4835-
bool done=0;
4834+
int state = 0;
4835+
bool done = 0;
48364836
char *norm;
48374837

48384838
if (len == 0) {

0 commit comments

Comments
 (0)