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

From: Date: Sun, 01 Nov 2026 12:49:35 +0000
Subject: [php-src] PHP-8.6: Merge branch 'PHP-8.4' into PHP-8.5
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143135@lists.php.net to get a copy of this message
Author: ndossche (ndossche) Date: 2026-11-01T13:48:59+01:00 Commit: https://github.com/php/php-src/commit/7fcd2df9a6b8a7e05581a0e193dd831396300512 Raw diff: https://github.com/php/php-src/commit/7fcd2df9a6b8a7e05581a0e193dd831396300512.diff Merge branch 'PHP-8.4' into PHP-8.5 * PHP-8.4: 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 fdfbe3380224..7d47669d454f 100644 --- a/NEWS +++ b/NEWS @@ -305,6 +305,10 @@ PHP NEWS . Fixed bug GH-25019 (Uri\Rfc3986\Uri rejects a port with leading zeros as out of range). (lazerg) +- 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 (#143135) next »