1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/sapi/cgi/tests/bug60677.phpt
Nikita Popov c5f1b384b5 Move shebang handling into the lexer
Instead of handling shebang lines by adjusting the file pointer in
individual SAPIs, move the handling into the lexer, where this is
both a lot simpler and more robust. Whether the shebang should be
skipped is controlled by CG(skip_shebang) -- we might want to do
that in more cases.

This fixed bugs #60677 and #78066.
2019-07-15 16:25:49 +02:00

10 lines
175 B
PHP

--TEST--
Bug #60677: CGI doesn't properly validate shebang line contains #!
--CGI--
--FILE--
#<?php echo "Hello World\n"; ?>
Second line.
--EXPECT--
#Hello World
Second line.