mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Skip shebang in cli-server router script
This commit is contained in:
commit
77f770871b
4
NEWS
4
NEWS
@ -2,6 +2,10 @@ PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? ????, PHP 8.3.14
|
||||
|
||||
- Cli:
|
||||
. Fixed bug GH-16373 (Shebang is not skipped for router script in cli-server
|
||||
started through shebang). (ilutov)
|
||||
|
||||
- COM:
|
||||
. Fixed out of bound writes to SafeArray data. (cmb)
|
||||
|
||||
|
@ -2280,6 +2280,7 @@ static bool php_cli_server_dispatch_router(php_cli_server *server, php_cli_serve
|
||||
}
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user