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

From: Date: Sun, 01 Nov 2026 12:49:35 +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-143136@lists.php.net to get a copy of this message
Author: ndossche (ndossche) Date: 2026-11-01T13:49:19+01:00 Commit: https://github.com/php/php-src/commit/5a31fb0ef4bc89659a89be7cc9f31609fd8f52f6 Raw diff: https://github.com/php/php-src/commit/5a31fb0ef4bc89659a89be7cc9f31609fd8f52f6.diff Merge branch 'PHP-8.5' into PHP-8.6 * PHP-8.5: Fix GH-25009: GetConsoleTitleW() buffer size passed in bytes Changed paths: M NEWS M sapi/cli/ps_title.c Diff: diff --git a/NEWS b/NEWS index c3d54001a7bd..c21aa34cb843 100644 --- a/NEWS +++ b/NEWS @@ -209,6 +209,10 @@ PHP NEWS . Fixed bug GH-24509 (HTTP wrapper leaks Location buffer on empty Location header). (bercedev) +- Windows: + . Fixed bug GH-25009 (GetConsoleTitleW() buffer size passed in bytes). + (Lazizbek Ergashev) + - Zip: . Reject broken libzip versions 1.3.1, 1.7.0 and 1.12.0 during Windows configuration. (Weilin Du) diff --git a/sapi/cli/ps_title.c b/sapi/cli/ps_title.c index ee977cd88cd1..9c6972d8c7b5 100644 --- a/sapi/cli/ps_title.c +++ b/sapi/cli/ps_title.c @@ -415,7 +415,7 @@ ps_title_status get_ps_title(size_t *displen, const char** string) wchar_t ps_buffer_w[MAX_PATH]; char *tmp; - if (!(ps_buffer_cur_len = GetConsoleTitleW(ps_buffer_w, (DWORD)sizeof(ps_buffer_w)))) { + if (!(ps_buffer_cur_len = GetConsoleTitleW(ps_buffer_w, (DWORD)(sizeof(ps_buffer_w) / sizeof(ps_buffer_w[0]))))) { return PS_TITLE_WINDOWS_ERROR; }

« previous php.cvs (#143136) next »