Skip to content

Commit 4cd8625

Browse files
committed
Remove short open tag detection from Readline extension
1 parent 8652f18 commit 4cd8625

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/readline/readline_cli.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,7 @@ static int cli_is_valid_code(char *code, size_t len, zend_string **prompt) /* {{
359359
}
360360
break;
361361
case outside:
362-
if ((CG(short_tags) && !strncmp(code+i-1, "<?", 2))
363-
|| (i > 3 && !strncmp(code+i-4, "<?php", 5))
364-
) {
362+
if (i > 3 && !strncmp(code+i-4, "<?php", 5)) {
365363
code_type = body;
366364
}
367365
break;

0 commit comments

Comments
 (0)