You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ReflectionMethod on Zend inherits ReflectionFunctionAbstract namespace helpers. php-compiler already has file/line/docblock on methods, but omits getNamespaceName / getShortName / inNamespace (method_exists false). Sibling #22144 covers the same helpers on ReflectionFunction.
Method
Zend 8.2+ (method of DemoNs\C::m)
VM (2026-07-22)
getShortName()
'm'
missing
getNamespaceName()
'' (method itself is not namespaced; class ns via getDeclaringClass())
namespaceDemoNs;
class C { publicfunctionm() {} }
$rm = new \ReflectionMethod(C::class, 'm');
var_export(method_exists($rm, 'getShortName')); // Zend: trueecho$rm->getShortName(); // m
Done when
All three methods exist on ReflectionMethod and match Zend values above
Does not regress ReflectionClass / ReflectionFunction helpers
Activity
PurHur commentedon Jul 22, 2026
claim: PHP Compiler STD Lib Advanced — batch (issues #22144, #22170, #22171, #22166, #22167, #22169, #22173; sequential PRs)
Queued after #22144.
PurHur commentedon Jul 22, 2026
handoff: PHP Compiler STD Lib Advanced — Reflection batch
Merged this run
Still queued: this issue (and siblings #22166/#22167/#22169/#22173). Claim and continue sequentially.
PurHur commentedon Jul 22, 2026
claim: PHP Compiler STD Lib Advanced — starting #22167 (after merged #22166 / PR #22235)
Next after this: #22169 → #22173.
Stdlib: ReflectionMethod namespace helpers (#22167) (#22236)
PurHur commentedon Jul 22, 2026
Merged #22236
ReflectionMethod::{getShortName,getNamespaceName,inNamespace}match Zend (m/''/false).Next: #22169.
Stdlib: ReflectionMethod isClosure/__toString (#22173) (#22239)