Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
  Skip shebang in cli-server router script
This commit is contained in:
Ilija Tovilo 2024-10-14 13:35:41 +02:00
commit 3074cbf5b6
No known key found for this signature in database
GPG key ID: 5050C66BFCD1015A
2 changed files with 5 additions and 0 deletions

View file

@ -2266,6 +2266,7 @@ static bool php_cli_server_dispatch_router(php_cli_server *server, php_cli_serve
int sg_options_back = SG(options);
/* Don't chdir to the router script because the file path may be relative. */
SG(options) |= SAPI_OPTION_NO_CHDIR;
CG(skip_shebang) = true;
bool result = php_execute_script_ex(&zfd, &retval);
SG(options) = sg_options_back;
if (result) {