mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Destroy file_handle in fpm_main
This commit is contained in:
commit
e44b1a916d
1
NEWS
1
NEWS
@ -24,6 +24,7 @@ PHP NEWS
|
||||
|
||||
- FPM:
|
||||
. Fixed bug GH-10611 (fpm_env_init_main leaks environ). (nielsdos)
|
||||
. Destroy file_handle in fpm_main. (Jakub Zelenka, nielsdos)
|
||||
|
||||
- FTP:
|
||||
. Propagate success status of ftp_close(). (nielsdos)
|
||||
|
@ -1903,6 +1903,13 @@ consult the installation file that came with this distribution, or visit \n\
|
||||
|
||||
php_execute_script(&file_handle);
|
||||
|
||||
/* Without opcache, or the first time with opcache, the file handle will be placed
|
||||
* in the CG(open_files) list by open_file_for_scanning(). Starting from the second
|
||||
* request in opcache, the file handle won't be in the list and therefore won't be destroyed for us. */
|
||||
if (!file_handle.in_list) {
|
||||
zend_destroy_file_handle(&file_handle);
|
||||
}
|
||||
|
||||
fastcgi_request_done:
|
||||
if (EXPECTED(primary_script)) {
|
||||
efree(primary_script);
|
||||
|
Loading…
Reference in New Issue
Block a user