Calvin Buckley
d0995886a4
Update versions for PHP 8.4.4RC2
...
Include regression fix from GH-17628 and another regression fix for
zlib-ng in ed1d51fa4f .
php-8.4.4RC2
2025-01-30 11:37:04 -04:00
Remi Collet
d0c2e3b580
relax test for zlib-ng
2025-01-30 11:37:04 -04:00
Niels Dossche
d39764d1f1
Fix potential read of uninitialized padding data in DOM ( #17628 )
...
The fix for GH-17481 introduced a regression that can cause the read of
uninitialized padding data when going over a chunk boundary during HTML
parsing of UTF-8.
The wrong offset was computed with respect to the input buffer, the
length of the error-corrected UTF-8 code point is not necessarily the
same as the input code point length.
This was not noticed because no CI jobs run with Valgrind nor I do it
regularly, and ASAN doesn't catch uninitialized accesses.
2025-01-30 11:27:38 -04:00
Calvin Buckley
e0780ca52e
Update NEWS for PHP 8.4.4RC1
php-8.4.4RC1
2025-01-28 13:18:55 -04:00
Calvin Buckley
6bacd98c31
Update versions for PHP 8.4.4RC1
2025-01-28 13:18:01 -04:00
Ilija Tovilo
4d545f91bc
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
[skip ci] Another flaky macOS phar test
2025-01-28 12:59:25 +01:00
Ilija Tovilo
dc06a52362
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
[skip ci] Another flaky macOS phar test
2025-01-28 12:58:55 +01:00
Ilija Tovilo
c14601cc90
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
[skip ci] Another flaky macOS phar test
2025-01-28 12:58:42 +01:00
Ilija Tovilo
d9744869e6
[skip ci] Another flaky macOS phar test
2025-01-28 12:58:30 +01:00
Ilija Tovilo
ac42a8de75
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix missing GC_PERSISTENT_LOCAL flag on accel_globals.key
2025-01-28 12:55:55 +01:00
Ilija Tovilo
2ad778bc76
Fix missing GC_PERSISTENT_LOCAL flag on accel_globals.key
2025-01-28 12:55:09 +01:00
Ilija Tovilo
c63460c92c
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
[skip ci] Another flaky macOS phar test
2025-01-28 12:45:35 +01:00
Ilija Tovilo
b598dbf822
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
[skip ci] Another flaky macOS phar test
2025-01-28 12:45:17 +01:00
Ilija Tovilo
01309961bb
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
[skip ci] Another flaky macOS phar test
2025-01-28 12:45:10 +01:00
Ilija Tovilo
65b990a1e0
[skip ci] Another flaky macOS phar test
2025-01-28 12:44:24 +01:00
Ilija Tovilo
c1b151020a
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix cve-2014-3538 test
2025-01-27 21:49:10 +01:00
Ilija Tovilo
cee3687180
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix cve-2014-3538 test
2025-01-27 21:49:03 +01:00
Ilija Tovilo
7bda7ad31d
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix cve-2014-3538 test
2025-01-27 21:48:47 +01:00
Ilija Tovilo
d17d58a982
Fix cve-2014-3538 test
...
Make sure we have a unique test file to work with, and increase the time
for the nojit version to match the default version.
Closes GH-17600
2025-01-27 20:01:13 +01:00
Ilija Tovilo
1432a13413
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix inline zend_string using struct padding
2025-01-27 19:51:47 +01:00
Ilija Tovilo
8ea9b04a23
Fix inline zend_string using struct padding
...
As explained by Snape3058: On 64-bit machines, we typically have 7 bytes
of padding between the zend_string.val[0] char and the following char[].
This means that zend_string.val[1-7] write to and read from the struct
padding, which is a bad idea.
Allocate the given string separately instead.
Fixes GH-17564
Closes GH-17576
2025-01-27 19:50:38 +01:00
Calvin Buckley
25bdbf96cf
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix crash in PDO_ODBC statement dtor (#17586 )
2025-01-27 13:43:21 -04:00
Calvin Buckley
556def741c
Fix crash in PDO_ODBC statement dtor ( #17586 )
...
Port of 2ae897fff7 to PDO_ODBC.
2025-01-27 13:41:11 -04:00
Ilija Tovilo
199e42644a
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix mysql mysql_native_password error on CircleCI
2025-01-27 17:13:41 +01:00
Ilija Tovilo
1a4810a23d
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix mysql mysql_native_password error on CircleCI
2025-01-27 17:13:30 +01:00
Ilija Tovilo
ad8ba85903
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix mysql mysql_native_password error on CircleCI
2025-01-27 17:13:20 +01:00
Ilija Tovilo
c99fb05929
Fix mysql mysql_native_password error on CircleCI
...
This is already fixed in higher branches. We'll need to fix this
properly when upgrading to MySQL 8.4, which we should do soon as 8.3 is
already EOL.
Closes GH-17560
2025-01-27 17:11:29 +01:00
Tim Düsterhus
f37b165403
Fix #[\Deprecated] for __call() and __callStatic() ( #17592 )
...
* Fix `#[\Deprecated]` for `__call()` and `__callStatic()`
Fixes php/php-src#17597 .
* Do not duplicate the `attributes` table in `zend_get_call_trampoline_func()`
2025-01-27 13:41:41 +01:00
Gina Peter Banyard
7f321a1313
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
ext/pdo: Fix a UAF when changing default fetch class ctor args
2025-01-26 23:37:14 +00:00
Gina Peter Banyard
3027600ffc
ext/pdo: Fix a UAF when changing default fetch class ctor args
...
Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com >
2025-01-26 23:32:35 +00:00
Niels Dossche
fc7c353519
Fix GH-17572: getElementsByTagName returns collections with tagName-based indexing, causing loss of elements when converted to arrays
...
Only (dtd) named node maps should have string-based indexing.
The ce check is fragile, just check for the presence of an xml hash
table.
Closes GH-17580.
2025-01-26 16:21:54 +01:00
Christoph M. Becker
5c066e04b2
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix NULL arithmetic in System V shared memory emulation
2025-01-25 18:59:00 +01:00
Christoph M. Becker
2e02cdfb5f
Fix NULL arithmetic in System V shared memory emulation
...
For the first child process execution, `TWG(shm)` is `NULL`; we need to
catch that to avoid undefined behavior.
Closes GH-17550.
2025-01-25 18:57:30 +01:00
Christoph M. Becker
be11d97ec7
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Use preinstalled MySQL for Windows CI
2025-01-25 17:42:37 +01:00
Christoph M. Becker
3a52aba20c
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Use preinstalled MySQL for Windows CI
2025-01-25 17:41:33 +01:00
Christoph M. Becker
2692b483db
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Use preinstalled MySQL for Windows CI
2025-01-25 17:40:48 +01:00
Christoph M. Becker
a403b76e88
Use preinstalled MySQL for Windows CI
...
Recent hosted GH Windows runners already have MySQL preinstalled, so
there is no particular need to install it again via Chocolatey or other
means.
If we ever need to address more specific needs, we may want to have a
look at <https://github.com/ankane/setup-mysql >.
Closes GH-17561.
Closes GH-17570.
2025-01-25 17:40:00 +01:00
Niels Dossche
27187bd1da
[ci skip] NEWS for GH-17122
2025-01-24 23:31:11 +01:00
Niels Dossche
77130794a3
Update test expectation for different Firebird version
...
libfbclient 5.0.1 with server 4.0.1 has a different error message and
code.
> Read only sql transaction
Closes GH-17565.
2025-01-24 22:10:08 +01:00
Gina Peter Banyard
5b06a066f6
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Add NEWS entries
Fix crash in firebird statement dtor
ext/pdo: Fix memory leak if GC needs to free PDO Statement
2025-01-24 20:22:13 +00:00
Gina Peter Banyard
e6d917e4c9
Add NEWS entries
...
Closes GH-17539
2025-01-24 20:16:12 +00:00
Niels Dossche
2ae897fff7
Fix crash in firebird statement dtor
...
If both the driver object and statement end up in the GC buffer and are
freed by the GC, then the destruction order is not deterministic and it
is possible that the driver object is freed before the statement. In
that case, accessing S->H will cause a UAF. As the resources are already
released we simply skip the destruction if the driver object is already
destroyed.
2025-01-24 20:16:12 +00:00
Gina Peter Banyard
99f8ec33d9
ext/pdo: Fix memory leak if GC needs to free PDO Statement
2025-01-24 20:16:12 +00:00
Ilija Tovilo
135cabb48f
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GHA config yml error
2025-01-24 15:44:41 +01:00
Ilija Tovilo
7068357906
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GHA config yml error
2025-01-24 15:44:30 +01:00
Ilija Tovilo
f281e89cd1
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GHA config yml error
2025-01-24 15:44:12 +01:00
Ilija Tovilo
3e6f4702ba
Fix GHA config yml error
2025-01-24 15:43:22 +01:00
Gina Peter Banyard
d35904adf2
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
ext/session: Fix GH-17541 (ext/session NULL pointer dereferencement during ID reset)
2025-01-24 14:10:00 +00:00
Gina Peter Banyard
a85666c17b
ext/session: Fix GH-17541 (ext/session NULL pointer dereferencement during ID reset)
...
Closes GH-17541
Closes GH-17546
2025-01-24 14:04:58 +00:00
Ilija Tovilo
64be3296e8
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
[skip ci] Use !cancelled() over always() in GHA config
2025-01-24 14:27:49 +01:00