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/cli/tests/bug77561.phpt
Nikita Popov 896dad4c79 Fixed bug #77561
Unconditionally strip shebang lines when using the CLI SAPI,
independently of whether they occur in the primary or non-primary
script. It's unlikely that someone intentionally wants to print
that shebang line when including a script, and this regularly
causes issues when scripts are used in multiple contexts, e.g.
for direct invocation and as a phar bootstrap.
2020-08-10 10:38:33 +02:00

11 lines
141 B
PHP

--TEST--
Bug #77561: Shebang line not stripped for non-primary script
--FILE--
<?php
require __DIR__ . '/bug77561.inc';
?>
--EXPECT--
Test