Skip shebang in cli-server router script

Fixes GH-16373
Closes GH-16403
This commit is contained in:
Ilija Tovilo 2024-10-13 02:02:23 +02:00
parent 3843f0ecfe
commit 06efe44c2e
No known key found for this signature in database
GPG key ID: 5050C66BFCD1015A
2 changed files with 5 additions and 0 deletions

View file

@ -2271,6 +2271,7 @@ static int php_cli_server_dispatch_router(php_cli_server *server, php_cli_server
}
ZVAL_UNDEF(&retval);
CG(skip_shebang) = true;
if (SUCCESS == zend_execute_scripts(ZEND_REQUIRE, &retval, 1, &zfd)) {
if (Z_TYPE(retval) != IS_UNDEF) {
decline = Z_TYPE(retval) == IS_FALSE;