Daniel Scherzer
3747e9393d
Merge branch 'PHP-8.5'
...
* PHP-8.5:
Revert "Deprecate returning non-string values from a user output handler (#18932 )" (#20455 )
2025-11-11 15:23:42 -08:00
Daniel Scherzer
2711864e82
Revert "Deprecate returning non-string values from a user output handler ( #18932 )" ( #20455 )
...
This partially reverts commit d8577d9bfb , and
reverts parts of 07f1cfd9b0 .
2025-11-11 15:22:25 -08:00
Ilija Tovilo
999e16a057
Merge branch 'PHP-8.5'
...
* PHP-8.5:
memory_limit is not always limited by max_memory_limit
2025-11-11 01:43:01 +01:00
manuel
37e82ea5d0
memory_limit is not always limited by max_memory_limit
...
Make sure to always duplicate max_memory_limit ini value. Otherwise the alter
ini routine may assume the value hasn't been overwritten, resulting in the
user-specified value being set after the on_modify handler has run.
Fixes GH-17951
Closes GH-19963
2025-11-11 01:42:27 +01:00
Tim Düsterhus
0a7695cd5a
Merge branch 'PHP-8.5'
...
* PHP-8.5:
PHP 8.5 | UPGRADING: fix entry about new grapheme $locale parameter (#20239 )
uri: Make uri_parser_rfc3986.h usable for external extensions (#20173 )
Fix missing deprecation message for default case statement followed by semicolon (#20172 )
2025-10-20 10:32:14 +02:00
Theodore Brown
c03215b623
Fix missing deprecation message for default case statement followed by semicolon ( #20172 )
...
Follow-up to GH-19215
2025-10-20 10:29:54 +02:00
Jakub Zelenka
c07b9cc49d
Merge branch 'PHP-8.5'
2025-10-06 10:32:28 +02:00
Nicolas Grekas
fc353966f3
Revert deprecation of __sleep and __wakeup ( #19966 )
2025-10-06 10:30:27 +02:00
Jakub Zelenka
6fbe99964f
Add CI for unit tests
2025-10-05 18:40:27 +02:00
Jakub Zelenka
c128a1801b
Add unit test setup with php_network_connect_socket test
2025-10-05 18:40:27 +02:00
Gina Peter Banyard
b4ed215299
core: Warn when non-representable floats are coerced to int ( #19760 )
...
RFC: https://wiki.php.net/rfc/warnings-php-8-5#casting_out_of_range_floats_to_int
2025-09-21 23:53:16 +01:00
Arnaud Le Blanc
ef9a89f7ec
Merge branch 'PHP-8.4'
...
* PHP-8.4:
Fix GH-19480: error_log php.ini cannot be unset when open_basedir is configured
2025-09-19 18:13:55 +02:00
Arnaud Le Blanc
938226083e
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GH-19480: error_log php.ini cannot be unset when open_basedir is configured
2025-09-19 14:16:48 +02:00
Niels Dossche
7a1bb71127
Fix GH-19480: error_log php.ini cannot be unset when open_basedir is configured
...
Since the ini message handlers already check for basedir, we need to
drop the basedir check from ini_set. Then we also fix the exceptional
case for the empty string: it should bypass the basedir check.
Furthermore, there was a regression introduced with the error_log
"syslog" check in ddfe269a (inverted check), so we fix that as well.
Closes GH-19487
2025-09-19 14:14:53 +02:00
Gina Peter Banyard
f18e99244b
Zend: Deprecate __sleep() ( #19682 )
...
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_sleep_and_wakeup_magic_methods
2025-09-10 08:54:16 +01:00
Tim Düsterhus
37bf0ec961
main: Deprecate deriving $_SERVER['argc'] and $_SERVER['argv'] from the query string ( #19606 )
...
* main: Ignore `register_argc_argv` when `SG(request_info).argc` is available
* sapi: Remove hardcoded `register_argc_argv` for CLI SAPIs
This INI is ignored since the previous commit, which makes the hardcoded
setting obsolete.
* main: Deprecate deriving $_SERVER['argc'] and $_SERVER['argv'] from the query string
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_register_argc_argv_ini_directive
* main: Adjust deprecation message for `register_argc_argv`
* NEWS/UPGRADING
2025-09-09 10:34:35 +02:00
Alexandre Daubois
49e3956b70
core: Deprecate using null as an array offset and when calling array_key_exists() ( #19511 )
...
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_using_values_null_as_an_array_offset_and_when_calling_array_key_exists
2025-09-04 22:12:24 +01:00
Gina Peter Banyard
8747e9ae18
Zend: Warn when destructuring non-array values ( #19439 )
...
RFC: https://wiki.php.net/rfc/warnings-php-8-5#destructuring_non-array_values
2025-08-29 16:06:34 +01:00
Tim Düsterhus
b27d91993d
main: Change the register_argc_argv INI default to Off ( #19473 )
...
This partly implements the deprecation of the `register_argc_argv` INI setting
by updating the default value to ensure safe behavior when no INI file is
loaded. The actual deprecation warning will follow separately.
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_register_argc_argv_ini_directive
2025-08-28 17:39:55 +02:00
Gina Peter Banyard
93716bece4
Enact follow-up phase of the "Path to Saner Increment/Decrement operators" RFC ( #19374 )
...
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#enact_follow-up_phase_of_the_path_to_saner_incrementdecrement_operators_rfc
2025-08-23 14:36:39 +01:00
Alexandre Daubois
a84a82ed88
Deprecate disabling report_memleaks INI directive ( #19481 )
...
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_report_memleaks_ini_directive
2025-08-16 14:04:34 +02:00
Tim Düsterhus
3d9d68e1ca
zend_compile: Deprecate backticks as an alias for shell_exec() ( #19443 )
...
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_backticks_as_an_alias_for_shell_exec
2025-08-12 12:02:13 +02:00
Theodore Brown
5f8d648af6
Deprecate terminating case statements with a semicolon ( #19215 )
...
Part of https://wiki.php.net/rfc/deprecations_php_8_5
Closes GH-15258
2025-08-11 14:18:06 +02:00
Gina Peter Banyard
94a15cc92f
Deprecate the parameter of get_defined_functions() ( #19425 )
...
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_exclude_disabled_parameter_of_get_defined_functions
2025-08-09 11:22:43 +01:00
Ilija Tovilo
cd80ed6f7b
Implement changes to GH-17951 according to ML discussion
2025-08-04 16:04:25 +02:00
Frederik Milling Pytlick
4e21924271
Fix GH-17951: Addition of max_memory_limit INI
...
Closes GH-18011
2025-08-04 16:04:25 +02:00
DanielEScherzer
07f1cfd9b0
Deprecate producing output in a user output handler ( #19067 )
...
https://wiki.php.net/rfc/deprecations_php_8_4
2025-07-09 21:20:58 -07:00
DanielEScherzer
d8577d9bfb
Deprecate returning non-string values from a user output handler ( #18932 )
...
https://wiki.php.net/rfc/deprecations_php_8_4
2025-07-07 14:31:13 -07:00
Gina Peter Banyard
f91f80ca19
Zend: Return anonymous closure names in zend_get_callable_name_ex() ( #19011 )
...
This returns the usual `{closure:FILE_NAME/FUNCTION:LINE_NO}` for anonymous functions rather than `Closure::__invoke` this is visible for `is_callable()` and any Engine call that uses `zend_fcall_info_init()` to get the name of the callable.
Related to GH-18063.
2025-07-03 12:01:11 +01:00
Tim Düsterhus
59dd0f8a48
Zend: Use zend_bad_method_call() when cloning from the wrong scope ( #18999 )
2025-07-01 20:24:11 +02:00
Shivam Mathur
9adc94985f
Merge branch 'PHP-8.4'
2025-06-25 03:23:03 +05:30
Shivam Mathur
a8bd3ba1bb
Merge branch 'PHP-8.3' into PHP-8.4
2025-06-25 03:22:43 +05:30
Shivam Mathur
ac15486ae0
Fix CI for windows-2022
...
This is a continuation of GH-18927 to fix CI for windows-2022
2025-06-25 03:20:49 +05:30
Tim Düsterhus
4c5a6b0e8d
tree-wide: Remove stacktraces from tests testing throwing clones ( #18748 )
...
This is in preparation for the possible future transformation of `clone` into a
function call, but also meaningful on its own, since the purpose of the tests
is not to test the stack trace generation, but rather that an exception was
thrown. It also cleans up some unreachable code in the tests.
2025-06-03 20:08:47 +02:00
David Hein
77d5eb6a5a
[skip ci] Fix tests with multiline titles (GH-17763)
...
See GH-17761
2025-02-14 12:03:53 +01:00
Dmitry Stogov
c630801ae7
Merge branch 'PHP-8.4'
...
* PHP-8.4:
Fix GH-15709: Crashing tests on Windows x64 (#17095 )
2024-12-13 02:06:14 +03:00
Dmitry Stogov
ccc6c0f78c
Fix GH-15709: Crashing tests on Windows x64 ( #17095 )
...
This is a quick fix for the problem.
It'll work while all the JIT-ed functions have the same "fixed stack frame".
Unwinder uses hard-coded unwind data for this "fixed stack frame".
* Preallocate space for Win64 shadow args
* typo
* Setup unwinder for JIT functions
* Revert "Dynamically xfail test case which fails on CI"
This reverts commit 7cc327fd5a .
* Revert "Dynamically xfail test case which fails on CI"
This reverts commit bdde797159 .
* Revert "Dynamically xfail test cases which fail on CI (GH-15710)"
This reverts commit 6d5962074f .
* Remove XFAIL sections
* Add hard-coded SEH unwind data for EXITCALL
* Fix unwind data
* Fix Windows multi-process support
* Typo
2024-12-13 02:05:45 +03:00
Christoph M. Becker
bef96f35fd
Merge branch 'PHP-8.4'
...
* PHP-8.4:
Revert "Enable GHSA-9pqp-7h25-4f32.phpt on Windows"
2024-12-04 20:47:48 +01:00
Christoph M. Becker
88acd91683
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Revert "Enable GHSA-9pqp-7h25-4f32.phpt on Windows"
2024-12-04 20:47:11 +01:00
Christoph M. Becker
e50cf7a7a0
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Revert "Enable GHSA-9pqp-7h25-4f32.phpt on Windows"
2024-12-04 20:45:39 +01:00
Christoph M. Becker
e532d9afb5
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Revert "Enable GHSA-9pqp-7h25-4f32.phpt on Windows"
2024-12-04 20:44:47 +01:00
Christoph M. Becker
2285d7083e
Revert "Enable GHSA-9pqp-7h25-4f32.phpt on Windows"
...
This reverts commit 7685fb0e1c .
The test fails at least for PHP-8.2+ on CI. Needs closer investigation.
2024-12-04 20:43:49 +01:00
Christoph M. Becker
44e4f6d8f9
Merge branch 'PHP-8.4'
...
* PHP-8.4:
Enable GHSA-9pqp-7h25-4f32.phpt on Windows
2024-12-04 19:06:20 +01:00
Christoph M. Becker
fbba6df626
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Enable GHSA-9pqp-7h25-4f32.phpt on Windows
2024-12-04 19:05:49 +01:00
Christoph M. Becker
9c40bdaaf5
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Enable GHSA-9pqp-7h25-4f32.phpt on Windows
2024-12-04 19:04:52 +01:00
Christoph M. Becker
c17b5bae8a
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Enable GHSA-9pqp-7h25-4f32.phpt on Windows
2024-12-04 19:04:22 +01:00
Christoph M. Becker
7685fb0e1c
Enable GHSA-9pqp-7h25-4f32.phpt on Windows
...
Closes GH-16933.
2024-12-04 19:03:42 +01:00
Christoph M. Becker
3b517e0825
Merge branch 'PHP-8.4'
...
* PHP-8.4:
Fix GH-15964: printf() can strip sign of -INF
2024-12-02 14:28:23 +01:00
divinity76
c2d3734e89
Fix GH-15964: printf() can strip sign of -INF
...
We need to cater to negative infinity explicitly.
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de >
Closes GH-15965.
2024-12-02 14:27:36 +01:00
Niels Dossche
51aee3877b
Merge branch 'PHP-8.4'
...
* PHP-8.4:
Fix GH-16998: UBSAN warning in rfc1867
2024-12-01 11:00:23 +01:00