Skip to content

Commit 62b85af

Browse files
committed
Remove short open tag detection from Readline extension
1 parent e12c3fa commit 62b85af

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
@@ -355,9 +355,7 @@ static int cli_is_valid_code(char *code, size_t len, zend_string **prompt) /* {{
355355
}
356356
break;
357357
case outside:
358-
if ((CG(short_tags) && !strncmp(code+i-1, "<?", 2))
359-
|| (i > 3 && !strncmp(code+i-4, "<?php", 5))
360-
) {
358+
if (i > 3 && !strncmp(code+i-4, "<?php", 5)) {
361359
code_type = body;
362360
}
363361
break;

0 commit comments

Comments
 (0)