Skip to content

Commit 0f17271

Browse files
committed
Merge branch 'PHP-8.4'
* PHP-8.4: Skip shebang in cli-server router script
2 parents 39533af + 3074cbf commit 0f17271

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sapi/cli/php_cli_server.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,6 +2266,7 @@ static bool php_cli_server_dispatch_router(php_cli_server *server, php_cli_serve
22662266
int sg_options_back = SG(options);
22672267
/* Don't chdir to the router script because the file path may be relative. */
22682268
SG(options) |= SAPI_OPTION_NO_CHDIR;
2269+
CG(skip_shebang) = true;
22692270
bool result = php_execute_script_ex(&zfd, &retval);
22702271
SG(options) = sg_options_back;
22712272
if (result) {

0 commit comments

Comments
 (0)