mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
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.
10 lines
175 B
PHP
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.
|