diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index 732ac27c9a207..422576e96abfc 100644 --- a/sapi/cli/php_cli_server.c +++ b/sapi/cli/php_cli_server.c @@ -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;