[php-src] master: [RFC] Deprecate `ReflectionMethod` invocation for static methods with objects

Daniel Scherzer <[email protected]>
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Daniel Scherzer (DanielEScherzer)
Date: 2026-08-12T10:09:30-07:00

Commit: https://github.com/php/php-src/commit/d3f4eada1001627df6330e7606081e7ab42ca311
Raw diff: https://github.com/php/php-src/commit/d3f4eada1001627df6330e7606081e7ab42ca311.diff

[RFC] Deprecate `ReflectionMethod` invocation for static methods with objects

`ReflectionMethod::invoke()` and `::invokeArgs()` are affected, but share
implementation code and so are updated together.

https://wiki.php.net/rfc/deprecations_php_8_6

Changed paths:
  M  UPGRADING
  M  ext/reflection/php_reflection.c
  M  ext/reflection/tests/ReflectionMethod_invokeArgs_error3.phpt
  M  ext/reflection/tests/ReflectionMethod_invoke_basic.phpt
  M  ext/reflection/tests/ReflectionMethod_invoke_error1.phpt


Diff:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.