Skip to content

[pull] master from php:master - #1226

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

[pull] master from php:master#1226
pull[bot] merged 7 commits into
turkdevops:masterfrom
php:master

Conversation

@pull

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

crystarm and others added 7 commits August 28, 2026 00:52
php_stream_filter_flush() compacts unread data before appending buckets
produced by a read filter. The source and destination ranges may overlap,
making memcpy() undefined behavior. Additionally, resetting readpos before
subtracting it from writepos leaves the buffer size unadjusted and stale
data visible.

Use memmove() and adjust writepos before resetting readpos, matching the
existing buffer compaction logic in php_stream_fill_read_buffer().

Closes #23439
* PHP-8.4:
  Fix read buffer compaction in stream filter flush (#23439)
* PHP-8.5:
  Fix read buffer compaction in stream filter flush (#23439)
…23479)

Check the insertion result and release these allocations on failure.
* PHP-8.4:
  Fix GH-23477: Memory leak on duplicate native Phar manifest entries (#23479)
* PHP-8.5:
  Merge branch 'PHP-8.4' into PHP-8.5
pg_update() and pg_delete() list PGSQL_DML_ASYNC among the valid flags in
the error they raise, although their masks reject it and their helpers
assert it is never set. Conversely pg_insert() and pg_update() accept the
whole PGSQL_CONV_OPTS set but only named PGSQL_CONV_FORCE_NULL, so
PGSQL_CONV_IGNORE_DEFAULT and PGSQL_CONV_IGNORE_NOT_NULL are added.

While there, widen php_pgsql_delete()'s assert to PGSQL_DML_NO_CONV,
which pg_delete() accepts and the helper itself consults.

Close GH-23480
@pull pull Bot locked and limited conversation to collaborators Aug 27, 2026
@pull pull Bot added the ⤵️ pull label Aug 27, 2026
@pull
pull Bot merged commit 65ae1ad into turkdevops:master Aug 27, 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.

3 participants