Skip to content

[pull] master from php:master - #1175

Merged
pull[bot] merged 15 commits into
turkdevops:masterfrom
php:master
Aug 10, 2026
Merged

[pull] master from php:master#1175
pull[bot] merged 15 commits into
turkdevops:masterfrom
php:master

Conversation

@pull

@pull pull Bot commented Aug 10, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

shivammathur and others added 15 commits August 10, 2026 14:01
* PHP-8.2:
  Upgrade php-sdk to 2.8.2 (#23193)
* PHP-8.3:
  Upgrade php-sdk to 2.8.2 (#23193)
* PHP-8.4:
  Upgrade php-sdk to 2.8.2 (#23193)
* PHP-8.5:
  Upgrade php-sdk to 2.8.2 (#23193)
Runs the test suite in parallel by default; automatically selects up to 10 workers. Explicit -j1 remains the opt-out to run tests serial. Smaller batches improve balancing.
php_array_walk() recurses once per nesting level with no stack check, so array_walk_recursive() on a deeply nested array exhausts the native stack and the process dies with a segfault.

This adds the same stack limit check ext/standard already uses in var.c and http.c, so the call throws an Error instead of crashing. The existing GC_IS_RECURSIVE guard only covers self-referential arrays, not plain deep nesting.

Fixes GH-23111
php_array_replace_recursive() recurses once per nesting level with no stack check, so array_replace_recursive() on a deeply nested array exhausts the native stack and the process dies with a segfault.

Fixes GH-23113
* PHP-8.4:
  Add a stack limit check in php_array_replace_recursive (#23124)
  Add a stack limit check in php_array_walk() (#23125)
* PHP-8.5:
  Add a stack limit check in php_array_replace_recursive (#23124)
  Add a stack limit check in php_array_walk() (#23125)
php_compact_var() recurses once per nesting level with no stack check, so passing a deeply nested array to compact() exhausts the native stack and the process dies with a segfault.

This adds the same stack limit check ext/standard already uses in var.c and http.c, so the call throws an Error instead of crashing.

Fixes GH-23115
* PHP-8.4:
  Add a stack limit check in php_compact_var() (#23126)
* PHP-8.5:
  Add a stack limit check in php_compact_var() (#23126)
pdo_raise_impl_error stored the SQLSTATE then still emitted E_WARNING
even when the handle error mode was SILENT. The early return for SILENT
was present but disabled (#if 0). Copy the error code first so
errorInfo() remains valid, then return without warning.

Closes GH-23070
@pull pull Bot locked and limited conversation to collaborators Aug 10, 2026
@pull pull Bot added the ⤵️ pull label Aug 10, 2026
@pull
pull Bot merged commit b645104 into turkdevops:master Aug 10, 2026
1 of 3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants