Skip to content

Built-in server should strip shebang #16373

@vrubleg

Description

@vrubleg

Description

The following code:

#!/opt/bin/php-cli -S0.0.0.0:8000
<?php
echo("Hello, World!");

Resulted in this output:

#!/opt/bin/php-cli -S0.0.0.0:8000 Hello, World!

But I expected this output instead:

Hello, World!

The shebang is properly stripped when you just run a PHP script like this:

#!/opt/bin/php-cli
<?php
echo("Hello, World!");

PHP Version

PHP 8.3

Operating System

Entware

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions