Commit 4b64476263c for php

commit 4b64476263cd5d83ea07bee1cab5b4a121ebc9f9
Merge: 45cad1131f5 5c7bd4a72e0
Author: Weilin Du <weilindu@php.net>
Date:   Mon Nov 30 03:23:40 2026 +0800

    Merge branch 'PHP-8.5' into PHP-8.6

    * PHP-8.5:
      Fix FFI::memcpy(), FFI::memcmp() and FFI::memset() accepting a negative size (#25827)

diff --cc NEWS
index 5d7f26bad78,784b1f09264..c9834106400
--- a/NEWS
+++ b/NEWS
@@@ -91,14 -75,9 +91,14 @@@ PH
  - FFI:
    . Fixed bug GH-25558 (struct with an enum field passed by value is described
      to libffi with a void element). (Davide Peressoni)
-   . Fixed FFI::string() reading out of bounds for a negative size.
-     (Marc Bennewitz)
+   . Fixed FFI::string(), FFI::memcpy(), FFI::memcmp() and FFI::memset()
+     reading or writing out of bounds for a negative size. (Marc Bennewitz)

 +- Fileinfo:
 +  . Fixed bug GH-25051 (TrueType fonts detected as application/octet-stream
 +    since libmagic 5.48). (Weilin Du)
 +  . Fixed incorrect MIME type detection for HWPX files. (Weilin Du)
 +
  - Filter:
    . Fixed stack overflow in filter_var() and filter_var_array() with deeply
      nested arrays. (Eyüp Can Akman)