Commit dcfa40cccf2 for php.net

commit dcfa40cccf20f8011694b3f1635c08b73b579e58
Merge: 3111fb294d4 88193e511b7
Author: Tim Düsterhus <tim@bastelstu.be>
Date:   Sat Jul 4 20:08:51 2026 +0200

    Merge branch 'PHP-8.5'

    * PHP-8.5:
      phpdbg: Fix off-by-one in phpdbg_safe_class_lookup() signal-safe class lookup (#22593)

diff --cc NEWS
index 3ed4f27a6ac,b4e9f5701b0..370095987ea
--- a/NEWS
+++ b/NEWS
@@@ -34,10 -50,26 +34,12 @@@ PH
    . Fixed bug GH-20726 (Crash with ODBC connection pooling when the DSN
      carries no credentials). (iliaal)

 -- Phar:
 -  . Fixed inconsistent handling of the magic ".phar" directory. Paths such as
 -    "/.phar" remain protected, while non-magic paths that merely start with
 -    ".phar" are handled consistently across file and directory creation,
 -    copying, ArrayAccess, stream lookup, directory iteration and extraction.
 -    (Weilin Du)
 -
  - PHPDBG:
 -  . Fixed bug GH-17387 (Trivial crash in phpdbg lexer). (iliaal)
    . Fixed fleaked lowercased lookup keys in phpdbg_resolve_opline_break.
      (jorgsowa)
+   . Fixed off-by-one in phpdbg_safe_class_lookup() causing class lookups to
+     always fail during phpdbg's signal-safe interruption path. (jorgsowa)

 -- Reflection:
 -  . Fixed bug GH-22324 (Ignore leading namespace separator in
 -    ReflectionParameter::__construct()). (jorgsowa)
 -  . Fixed bug GH-22441 (ReflectionClass::hasProperty() and getProperty() ignore
 -    dynamic properties shadowing a private parent property). (iliaal)
 -
  - Session:
    . Fixed bug GH-21314 (Different session garbage collector behavior between
      PHP 8.3 and PHP 8.5). (jorgsowa)