Skip to content

Commit f5c4699

Browse files
committed
Fix bool/int confusion
1 parent 072615e commit f5c4699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/tokenizer/tokenizer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ PHP_METHOD(PhpToken, getAll)
116116
ZEND_PARSE_PARAMETERS_END();
117117

118118
token_class = zend_get_called_scope(execute_data);
119-
if (tokenize_common(return_value, source, flags, token_class) == FAILURE) {
119+
if (!tokenize_common(return_value, source, flags, token_class)) {
120120
RETURN_THROWS();
121121
}
122122
}
@@ -494,7 +494,7 @@ PHP_FUNCTION(token_get_all)
494494
Z_PARAM_LONG(flags)
495495
ZEND_PARSE_PARAMETERS_END();
496496

497-
if (tokenize_common(return_value, source, flags, /* token_class */ NULL) == FAILURE) {
497+
if (!tokenize_common(return_value, source, flags, /* token_class */ NULL)) {
498498
RETURN_THROWS();
499499
}
500500
}

0 commit comments

Comments
 (0)