mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
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.
11 lines
141 B
PHP
11 lines
141 B
PHP
--TEST--
|
|
Bug #77561: Shebang line not stripped for non-primary script
|
|
--FILE--
|
|
<?php
|
|
|
|
require __DIR__ . '/bug77561.inc';
|
|
|
|
?>
|
|
--EXPECT--
|
|
Test
|