Skip to content

Commit 68461f2

Browse files
committed
Use integer as boolean values instead of tags
1 parent e340b2f commit 68461f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Zend/zend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ static void zend_set_default_compile_time_values(void) /* {{{ */
522522
{
523523
/* default compile-time values */
524524
CG(short_tags) = short_tags_default;
525-
CG(short_tags_notice) = IS_FALSE;
525+
CG(short_tags_notice) = 0;
526526
CG(compiler_options) = compiler_options_default;
527527
}
528528
/* }}} */

Zend/zend_language_scanner.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,9 +2032,9 @@ string:
20322032

20332033
<INITIAL>"<?" {
20342034
if (CG(short_tags)) {
2035-
if (CG(short_tags_notice) == IS_FALSE) {
2035+
if (CG(short_tags_notice) == 0) {
20362036
zend_error(E_DEPRECATED, "PHP Short tags are deprecated as of PHP 7.4 and will be removed in a future version");
2037-
CG(short_tags_notice) = IS_TRUE;
2037+
CG(short_tags_notice) = 1;
20382038
}
20392039
BEGIN(ST_IN_SCRIPTING);
20402040
if (PARSER_MODE()) {

0 commit comments

Comments
 (0)