Tim Düsterhus
ccb716dcad
fileinfo: Deprecate finfo_close()
( #18396 )
...
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_finfo_close
2025-08-08 21:25:13 +01:00
Tim Düsterhus
922c225fbf
reflection: Deprecate Reflection*::setAccessible()
( #19273 )
...
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_reflectionsetaccessible
2025-08-08 21:24:41 +01:00
Tim Düsterhus
732069d98b
pdo: Deprecate the uri:
DSN scheme ( #19274 )
...
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_pdo_s_urischeme
2025-08-08 21:24:15 +01:00
Tim Düsterhus
21625006e5
standard: Deprecate socket_set_timeout()
( #19285 )
...
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#formally_deprecate_socket_set_timeout
2025-08-08 21:23:48 +01:00
Tim Düsterhus
5d86515772
mysqli: Deprecate mysqli_execute()
( #19286 )
...
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#formally_deprecate_mysqli_execute
2025-08-08 21:23:31 +01:00
Gina Peter Banyard
43a91089ca
ext/intl: Refactor timezone parameter passing ( #19409 )
2025-08-08 21:12:43 +01:00
Niels Dossche
be2889411a
Merge branch 'PHP-8.4'
...
* PHP-8.4:
Fix GH-19397: mb_list_encodings() can cause crashes on shutdown
2025-08-08 20:33:00 +02:00
Niels Dossche
db3f6d0bf0
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GH-19397: mb_list_encodings() can cause crashes on shutdown
2025-08-08 20:32:55 +02:00
Niels Dossche
cc93bbb765
Fix GH-19397: mb_list_encodings() can cause crashes on shutdown
...
The request shutdown does not necessarily hold the last reference, if
there is still a CV that refers to the array.
Closes GH-19405.
2025-08-08 20:32:29 +02:00
Niels Dossche
99e6b0ecc8
Use stack allocation in timezone_initialize() ( #19394 )
...
This lives temporarily, avoid overhead and handling of heap allocation.
2025-08-08 20:29:39 +02:00
Arnaud Le Blanc
e4078a6a70
Disable opcache if no SHM backend is available
...
Currently, configure fails when no SHM backend is available. Additionally,
even after bypassing the configure check, opcache emits a fatal error if no
SHM backend is available.
Make the configure check non-fatal (a warning is printed). At runtime, disable
opcache if no backend is available, in the same way we disable opcache by
default on CLI.
Closes GH-19350
2025-08-08 14:41:37 +02:00
Gina Peter Banyard
fe88711b14
ext/intl: Use ZPP specifier for IntlTimeZone::createEnumeration() ( #19393 )
...
The existing code is extremely convoluted, incorrectly documented, and does not follow the usual semantics
2025-08-07 22:37:16 +01:00
David CARLIER
140fc69b4a
ext/intl: update from C to C++ step2. ( #19294 )
2025-08-07 22:36:34 +01:00
Gina Peter Banyard
c5143c0b22
tree: remove some usages of the report_memleaks INI setting ( #19407 )
2025-08-07 22:17:24 +01:00
Gina Peter Banyard
1f131e3ae6
[skip ci] ext/sockets: remove tests that leak memory ( #19408 )
...
I don't understand what the purposes of theses tests are.
2025-08-07 21:50:04 +01:00
Niels Dossche
a3f34043de
Merge branch 'PHP-8.4'
...
* PHP-8.4:
Fix GH-19371: integer overflow in calendar.c
2025-08-07 19:09:03 +02:00
Niels Dossche
11e6655624
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GH-19371: integer overflow in calendar.c
2025-08-07 19:08:58 +02:00
Niels Dossche
5cf45ba5ab
Fix GH-19371: integer overflow in calendar.c
...
Closes GH-19380.
2025-08-07 19:08:32 +02:00
Gina Peter Banyard
43420599f7
ext/intl: better errors for IntlTimeZone::createTimeZoneIDEnumeration ( #19395 )
...
IntlTimeZone::createTimeZoneIDEnumeration
And convert those to ValueErrors directly as they are bugs
2025-08-07 13:52:03 +01:00
Gina Peter Banyard
ca5667bc14
ext/intl: prevent creation of invalid UConverter instance ( #19396 )
2025-08-07 13:46:58 +01:00
Gina Peter Banyard
c42e6d62d8
ext/intl: modernize tests ( #19392 )
...
This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
2025-08-06 23:33:48 +01:00
Gina Peter Banyard
3fc0149325
[skip ci] drop invalid IntlDateFormat construction error test
...
The date.timezone INI setting defaults to UTC if an invalid value is provided, meaning that we construct a valid object with timezone UTC.
2025-08-06 22:15:06 +01:00
Ilija Tovilo
c69f04dbab
Fix borked test
2025-08-06 22:25:14 +02:00
Gina Peter Banyard
aa9694bdd0
ext/date: null bytes in timezones can only happen via HT initialization ( #19357 )
...
Thus check this error condition early in the HT initialization code.
2025-08-06 21:02:25 +01:00
Arnaud Le Blanc
7af4709d38
Fix test
2025-08-06 19:57:32 +02:00
Arnaud Le Blanc
c105571052
Fix test
2025-08-06 19:55:56 +02:00
Arnaud Le Blanc
32290b3529
Add opcache_preloading() internal function
...
Add a C function, opcache_preloading(), that returns true during
preloading. Extensions can use this to detect preloading, not only during
compilation/execution, but also in RINIT()/RSHUTDOWN().
Since opcache currently doesn't install any header, I'm adding a new one:
zend_accelerator_api.h. Header name is based on other files in ext/opcache.
Closes GH-19288
2025-08-06 18:21:19 +02:00
Arnaud Le Blanc
3088d64068
Remove the Opcache SAPI whitelist
...
Closes GH-19351
2025-08-06 18:14:10 +02:00
Arnaud Le Blanc
3ddbad9589
Allocate a fast thread-safe-resource id for opcache
...
Closes GH-19347
2025-08-06 18:02:43 +02:00
Gina Peter Banyard
5583273906
ext/ldap: Use size_t type instead of int type
2025-08-06 16:36:13 +01:00
Gina Peter Banyard
61790eb8a0
ext/ldap: Use uint32_t type instead of int type
2025-08-06 16:36:13 +01:00
Gina Peter Banyard
9af00b174a
ext/ldap: Use bool type instead of int type
2025-08-06 16:36:13 +01:00
Gina Peter Banyard
53fde8b5a8
ext/ldap: Remove useless variable
2025-08-06 16:36:13 +01:00
Gina Peter Banyard
b5fb9555e1
ext/ldap: Reduce scope of variable
2025-08-06 16:36:13 +01:00
Gina Peter Banyard
1c820750da
ext/ldap: Add static specifier for private function
2025-08-06 16:36:13 +01:00
Gina Peter Banyard
2e53aef1e8
ext/ldap: Remove unused include statement
2025-08-06 16:36:13 +01:00
Ilija Tovilo
5be04e25fd
[skip ci] Skip segfaulting OOM test in GH actions on Win
...
This only fails on the PHP-8.3 branch, most likely to be related to the
environment as discussed with Niels.
2025-08-06 14:28:47 +02:00
Gina Peter Banyard
1e0c8baf05
tree: drop non canonical casts and ZPP tests
2025-08-06 13:20:28 +01:00
Shivam Mathur
4a934005b4
Fix Windows test for openssl-3.5 upgrade ( #19384 )
...
* Fix Windows test for openssl-3.5 upgrade
* Update ext/openssl/tests/check_default_conf_path.phpt
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
---------
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2025-08-06 16:11:38 +05:30
David CARLIER
d801a4634f
Fixed GH-19381: posix_kill_pidoverflow test depends on pcntl too. ( #19382 )
2025-08-05 20:03:21 +01:00
David CARLIER
9ccd2ba9ff
Fixed GH-19163 fix ext/intl build on midly older compilers but still supporting C++11. ( #19353 )
2025-08-05 19:09:37 +01:00
Gina Peter Banyard
5b3d0e4c09
ext/json: Refactor php_json_encode_array()
...
Stop relying on internal flags which were published in the header
Use a more descriptive variable name and have it be a boolean
2025-08-05 18:21:15 +01:00
Gina Peter Banyard
17328ef86b
ext/json: Various small refactorings
2025-08-05 18:21:15 +01:00
Gina Peter Banyard
d9000b3094
tree: replace some unnecessary uses of spprintf ( #19354 )
2025-08-05 17:25:47 +01:00
Gina Peter Banyard
fa85b38560
streams: voidify php_stream_filter_prepend_ex()
...
This only ever returned SUCCESS
2025-08-04 15:30:57 +01:00
Gina Peter Banyard
cd13ba73e2
streams: use RETURN_BOOL() when possible
2025-08-04 15:30:57 +01:00
Gina Peter Banyard
b46c5e6186
streams: refactor implementation of stream_select()
2025-08-04 15:30:57 +01:00
Gina Peter Banyard
c50a715a5c
streams: remove useless casts
2025-08-04 15:30:57 +01:00
Gina Peter Banyard
0d0f774a6a
streams: use call in if statement directly
2025-08-04 15:30:57 +01:00
Gina Peter Banyard
841afdc486
streams: use type zend_result instead of type int
2025-08-04 15:30:57 +01:00