Skip to content

[pull] master from php:master#1078

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

[pull] master from php:master#1078
pull[bot] merged 9 commits into
turkdevops:masterfrom
php:master

Conversation

@pull

@pull pull Bot commented Jul 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 : )

LamentXU123 and others added 9 commits July 10, 2026 16:37
Rewrite the PHP_ZIP_SET_FILE_COMMENT macro to solve this uaf that occurs after
overwriting an existing entry and setting its inherited unchanged comment
again. My solution is to simply add a if branch.

I also add some defensive checks in the function by the way
(ZEND_ASSERT(comment_len <= 0xffff);) just in case someone will re-use this
helper in the future.

Fixes #22649
* PHP-8.4:
  Fix GH-22649: avoid ZipArchive comment reset crash (#22652)
* PHP-8.5:
  Fix GH-22649: avoid ZipArchive comment reset crash (#22652)
* Add support for -1 as valid year for idate() output.

Closes GH-13273

* Simplify error handling

* Add note in UPGRADING.INTERNALS about API change
This is already done for string options in php_curl_option_str
(see bug #68089). Similarly, array arguments should also not contain
null bytes, so we throw the same error for these.

This was extracted from #22651, as
this seems less controversial.

Using null bytes is clearly not supported and curl just throws away
everything after the null byte, so
https://wiki.php.net/rfc/policy-exempt-type-value-error-bc-policy seems
to apply here.
…Date classes (#22655)

* Fix GH-11310: __debugInfo does nothing on userland classes extending Date classes

* Add tests to make sure not calling the parent constructor has any effect
* PHP-8.4:
  Fix GH-11310: __debugInfo does nothing on userland classes extending Date classes (#22655)
* PHP-8.5:
  Fix GH-11310: __debugInfo does nothing on userland classes extending Date classes (#22655)
@pull pull Bot locked and limited conversation to collaborators Jul 10, 2026
@pull pull Bot added the ⤵️ pull label Jul 10, 2026
@pull pull Bot merged commit b2011f2 into turkdevops:master Jul 10, 2026
0 of 2 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.

4 participants