We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c62c60 commit 91857ccCopy full SHA for 91857cc
Zend/zend_language_scanner.l
@@ -1329,15 +1329,15 @@ static zend_result check_nesting_at_end(void)
1329
} while (0)
1330
1331
#define RETURN_EXIT_NESTING_TOKEN(_token) do { \
1332
- if (exit_nesting(_token) && PARSER_MODE()) { \
+ if (exit_nesting(_token) != SUCCESS && PARSER_MODE()) { \
1333
RETURN_TOKEN(T_ERROR); \
1334
} else { \
1335
RETURN_TOKEN(_token); \
1336
} \
1337
} while(0)
1338
1339
#define RETURN_END_TOKEN do { \
1340
- if (check_nesting_at_end() && PARSER_MODE()) { \
+ if (check_nesting_at_end() != SUCCESS && PARSER_MODE()) { \
1341
1342
1343
RETURN_TOKEN(END); \
0 commit comments