1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00
Commit Graph

20152 Commits

Author SHA1 Message Date
Daniel Scherzer ea75635f1d Update versions for PHP 8.5.2 2026-01-13 13:40:53 -08:00
Bob Weinand f754ffa8b2 Fixed bug GH-20745 ("Casting out of range floats to int" applies to strings) (#20746)
This reverts the warning for float-strings, to whose it never should have been applied in the first place.
2025-12-29 21:29:08 +01:00
Ilija Tovilo 99691b470a Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix uncatchable exception thrown in generator
2025-12-16 17:30:55 +01:00
Ilija Tovilo acff8f014c Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix uncatchable exception thrown in generator
2025-12-16 17:30:35 +01:00
Ilija Tovilo fb1ec9a5a7 Fix uncatchable exception thrown in generator
This procedure may be called during i_free_compiled_variables(), when
EG(current_execute_data) is unfortunately already reset to the parent frame.
EG(opline_before_exception) does not actually belong to this frame. Furthermore,
setting opline to EG(exception_op) early will miss a later
zend_rethrow_exception(), which will also miss installation of the correct
EG(opline_before_exception).

Fixes GH-20714
Closes GH-20716
2025-12-16 17:30:05 +01:00
Niels Dossche 21fe7149e7 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix GH-20695: Assertion failure in normalize_value() when parsing malformed INI input via parse_ini_string()
2025-12-15 22:47:07 +01:00
Niels Dossche 9cf6f87529 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix GH-20695: Assertion failure in normalize_value() when parsing malformed INI input via parse_ini_string()
2025-12-15 22:46:52 +01:00
Niels Dossche 85cb6e421a Fix GH-20695: Assertion failure in normalize_value() when parsing malformed INI input via parse_ini_string()
I think there's simply a reasoning error about when which scanner state
can cause which parser component to invoke later on.

Closes GH-20702.
2025-12-15 22:46:27 +01:00
Ilija Tovilo e66e9059df Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix dumping function signature with dynamic class const lookup default argument
2025-12-08 16:19:53 +01:00
Ilija Tovilo 61eca669d9 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix dumping function signature with dynamic class const lookup default argument
2025-12-08 16:19:35 +01:00
Ilija Tovilo 26c0cbd93c Fix dumping function signature with dynamic class const lookup default argument
Fixes OSS-Fuzz #465488618
Closes GH-20651
2025-12-08 16:19:06 +01:00
Saki Takamachi 2ec8c29fda PHP-8.4 is now for PHP 8.4.17-dev 2025-12-03 14:52:20 +09:00
Eric Mann e10f6d702f PHP-8.3 is now for PHP 8.3.30-dev 2025-12-02 09:05:38 -08:00
Volker Dusch d8fbe40efb PHP-8.5 is now for PHP 8.5.2-dev 2025-12-02 12:14:28 +01:00
Niels Dossche d13b5ebc08 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix GH-20286: use-after-destroy during userland stream_close()
2025-11-23 17:52:42 +01:00
Niels Dossche eb733a3127 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix GH-20286: use-after-destroy during userland stream_close()
2025-11-23 17:51:35 +01:00
Niels Dossche 27f17c3322 Fix GH-20286: use-after-destroy during userland stream_close()
Closes GH-20493.

Co-authored-by: David Carlier <devnexen@gmail.com>
2025-11-23 17:46:28 +01:00
David Carlier 1787765696 Fix GH-20546: Zend preserve_none attribute config check on macOs issue.
This attribute fails on macOs due to the inline assembly test.
Due to an old Darwin C ABI convention, symbols are prefixed with an
underscore so we need to take in account also for x86_64.

close GH-20559
2025-11-22 23:10:08 +00:00
David Carlier 01bca99955 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix GH-20483: ASAN stack overflow with small fiber.stack_size INI value.
2025-11-15 17:21:20 +00:00
David Carlier e3c23015a0 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix GH-20483: ASAN stack overflow with small fiber.stack_size INI value.
2025-11-15 17:21:08 +00:00
David Carlier d2c5b3b25b Fix GH-20483: ASAN stack overflow with small fiber.stack_size INI value.
close GH-20495
2025-11-15 17:20:29 +00:00
Ilija Tovilo 926f44d712 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Correctly handle extra named args for magic call in debug_backtrace_get_args()
2025-11-12 00:33:37 +01:00
Ilija Tovilo eee5dcccf8 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Correctly handle extra named args for magic call in debug_backtrace_get_args()
2025-11-12 00:33:28 +01:00
Ilija Tovilo b620d9d228 Correctly handle extra named args for magic call in debug_backtrace_get_args()
Closes GH-20454
2025-11-12 00:33:02 +01:00
Niels Dossche 5087cf3001 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix GH-20435: SensitiveParameter doesn't work for named argument passing to variadic parameter
  Fix GH-20442: Phar does not respect case-insensitiveness of __halt_compiler() when reading stub
2025-11-10 22:44:16 +01:00
Niels Dossche 3e715d3361 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix GH-20435: SensitiveParameter doesn't work for named argument passing to variadic parameter
  Fix GH-20442: Phar does not respect case-insensitiveness of __halt_compiler() when reading stub
2025-11-10 22:43:59 +01:00
Niels Dossche 33a2acba44 Fix GH-20435: SensitiveParameter doesn't work for named argument passing to variadic parameter
Closes GH-20436.
2025-11-10 22:43:17 +01:00
Niels Dossche d94c05fa28 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Sync all boost.context files with release 1.86.0
  Sync all boost.context files with release 1.86.0
2025-11-06 22:58:12 +01:00
Michael Voříšek 04bdc4aee0 Sync all boost.context files with release 1.86.0 2025-11-06 22:57:35 +01:00
Niels Dossche b828cc535d Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Sync all boost.context files with release 1.86.0
2025-11-06 22:57:26 +01:00
Michael Voříšek 3b2f03d16c Sync all boost.context files with release 1.86.0
Closes GH-20375.
2025-11-06 22:56:51 +01:00
Ilija Tovilo a69238119d Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  [skip ci] Relax Zend/tests/concat_003.phpt
2025-11-06 14:18:45 +01:00
Ilija Tovilo ce4001df17 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  [skip ci] Relax Zend/tests/concat_003.phpt
2025-11-06 14:18:39 +01:00
Ilija Tovilo b8fbf20c3b Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  [skip ci] Relax Zend/tests/concat_003.phpt
2025-11-06 14:18:33 +01:00
Ilija Tovilo d03cf27afe Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  [skip ci] Relax Zend/tests/concat_003.phpt
2025-11-06 14:18:27 +01:00
Ilija Tovilo f4bd908259 [skip ci] Relax Zend/tests/concat_003.phpt
This test frequently fails in CI, where it took 1.3s, including a repeat due to
being marked as flaky. Bump this limit with a generous margin.
2025-11-06 14:15:56 +01:00
Volker Dusch 78107c4a9a PHP 8.5 is now for PHP 8.5.1-dev 2025-11-04 19:55:56 +01:00
Calvin Buckley 57deb6c11b PHP 8.4 is now for PHP 8.4.16-dev
(Looks like this wasn't bumped for 8.4.15-dev previously)
2025-11-04 12:07:39 -04:00
Jakub Zelenka 17f253a1f2 PHP-8.3 is now for PHP 8.3.29-dev 2025-11-04 15:13:43 +01:00
Daniel Scherzer e5c6456d37 Fix GH-20377: emit assignment for all final promoted properties (#20378)
Previously, the assignment op line was only emitted when one of the other flags
allowed for promoted properties (visibility, set visibility, or readonly) was
also used, or when the property had hooks. The property was still added to the
class, but the magical assignment `$this->prop = $prop` was missing. Add that
assignment even when no visibility is explicitly specified, and a test to
confirm the fix.
2025-11-03 14:36:57 -08:00
Ilija Tovilo 80a6adcbb0 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix EG(current_execute_data) introduced in 1292037
2025-10-31 17:36:24 +01:00
Ilija Tovilo a5e1baf6b8 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix EG(current_execute_data) introduced in 1292037
2025-10-31 17:36:15 +01:00
Ilija Tovilo 5518165499 Fix EG(current_execute_data) introduced in 1292037
Fixes OSS-Fuzz #456317305
2025-10-31 17:34:25 +01:00
Gina Peter Banyard 9a1b8a785d Fix GH-20194: null offset deprecation not emitted for writes (#20238)
Based on a patch from @ndossche
2025-10-29 18:36:10 +00:00
Ilija Tovilo 1a74e9b549 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix stale EG(opline_before_exception) pointer through eval
2025-10-27 16:53:08 +01:00
Ilija Tovilo aa7265bb7b Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix stale EG(opline_before_exception) pointer through eval
2025-10-27 16:52:49 +01:00
Ilija Tovilo 12920370e1 Fix stale EG(opline_before_exception) pointer through eval
Fixes GH-20183
Closes GH-20184
2025-10-27 16:48:46 +01:00
Ilija Tovilo a1911ad3ef Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix parent hook call with named args
2025-10-27 16:39:02 +01:00
Ilija Tovilo b150eb35d4 Fix parent hook call with named args
Fixes GH-20270
Closes GH-20271
2025-10-27 16:38:08 +01:00
Ilija Tovilo fbf11f9378 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix accessing of overridden private property in get_object_vars()
2025-10-20 17:18:29 +02:00