Skip to content

Commit 2d46c38

Browse files
committed
Review nits
1 parent 28a3ff3 commit 2d46c38

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
@@ -3448,7 +3448,7 @@ PHP_FUNCTION(similar_text)
34483448
{
34493449
zend_string *t1, *t2;
34503450
zval *percent = NULL;
3451-
bool compute_percentage = ZEND_NUM_ARGS() == 3;
3451+
bool compute_percentage = ZEND_NUM_ARGS() >= 3;
34523452
size_t sim;
34533453

34543454
ZEND_PARSE_PARAMETERS_START(2, 3)
@@ -4827,8 +4827,8 @@ PHP_FUNCTION(parse_str)
48274827
static bool php_tag_find(char *tag, size_t len, const char *set) {
48284828
char c, *n;
48294829
const char *t;
4830-
int state=0;
4831-
bool done=0;
4830+
int state = 0;
4831+
bool done = 0;
48324832
char *norm;
48334833

48344834
if (len == 0) {

0 commit comments

Comments
 (0)