[php-src] master: Merge branch 'PHP-8.5' into PHP-8.6

From: Date: Fri, 16 Oct 2026 18:27:17 +0000
Subject: [php-src] master: Merge branch 'PHP-8.5' into PHP-8.6
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-142362@lists.php.net to get a copy of this message
Author: Jorg Sowa (jorgsowa) Date: 2026-10-16T20:25:25+02:00 Commit: https://github.com/php/php-src/commit/c66711881aab52fd5631cc6d90c8f73cd518599f Raw diff: https://github.com/php/php-src/commit/c66711881aab52fd5631cc6d90c8f73cd518599f.diff Merge branch 'PHP-8.5' into PHP-8.6 Changed paths: M NEWS M ext/standard/proc_open.c Diff: diff --git a/NEWS b/NEWS index 26d470adbc6b..019718e5ca0c 100644 --- a/NEWS +++ b/NEWS @@ -87,6 +87,8 @@ PHP NEWS when getpwnam_r() needs a larger buffer. (Ilia Alshanetsky) . Fixed password_get_info() and password_needs_rehash() accepting malformed bcrypt costs. (Ilia Alshanetsky) + . Fixed proc_open() null descriptor not being inheritable on Windows. + (Jorg Sowa) - Tidy: . Fixed tidy_repair_string(), tidy_repair_file(), tidy::repairString() and diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index 4fd24058f7cb..e63cdbb13e63 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -841,7 +841,7 @@ static zend_result set_proc_descriptor_to_blackhole(descriptorspec_item *desc) { #ifdef PHP_WIN32 desc->childend = CreateFileA("nul", GENERIC_READ | GENERIC_WRITE, - FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); + FILE_SHARE_READ | FILE_SHARE_WRITE, &php_proc_open_security, OPEN_EXISTING, 0, NULL); if (desc->childend == INVALID_HANDLE_VALUE) { php_error_docref(NULL, E_WARNING, "Failed to open nul"); return FAILURE;

« previous php.cvs (#142362) next »