Skip to content

[pull] master from php:master - #1217

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

[pull] master from php:master#1217
pull[bot] merged 12 commits into
turkdevops:masterfrom
php:master

Conversation

@pull

@pull pull Bot commented Aug 24, 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 : )

alexandre-daubois and others added 12 commits August 24, 2026 16:21
We conveniently use the function's scope for the scope of the generated closure
as this allows const exprs referencing self:: or parent:: to behave normally.

However this affects method resolution for magic methods. Fix by using the
actual scope for PFAs of magic methods.
sapi_cli_server_send_headers() sent the header buffer through
php_cli_server_client_send_through() but dropped the return value, so it
always reported SAPI_HEADER_SENT_SUCCESSFULLY, even when the send failed
and php_handle_aborted_connection() did not bail out (ignore_user_abort=1).
It now compares the send result against the buffer length and returns
SAPI_HEADER_SEND_FAILED when it comes up short.

php_cli_server_client_send_through() itself returned the number of bytes
left on failure, which equals str_len when nothing was sent: the same
value it returns on success. It now returns the number of bytes actually
sent on both paths.

Since sapi_send_headers() resets headers_sent on SAPI_HEADER_SEND_FAILED,
a headers_written flag on the client guards against rebuilding and
resending the whole header block on every subsequent output write.

Close GH-23428
* PHP-8.4:
  sapi/cli: check php_cli_server_client_send_through() return value
* PHP-8.5:
  sapi/cli: check php_cli_server_client_send_through() return value
…#23282)

Keep the native archive state alive independently of the ZipArchive object,
allowing streams to remain valid without retaining the object itself.
* PHP-8.4:
  Fix GH-23276: Collect ZipArchive subclasses holding their own streams (#23282)
* PHP-8.5:
  Merge branch 'PHP-8.4' into PHP-8.5
@pull pull Bot locked and limited conversation to collaborators Aug 24, 2026
@pull pull Bot added the ⤵️ pull label Aug 24, 2026
@pull
pull Bot merged commit 75ad088 into turkdevops:master Aug 24, 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