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
Enforce namespace-scoped visibility for method calls
Add runtime checks to enforce private(namespace) visibility on methods.
When a method with ZEND_ACC_NAMESPACE_PRIVATE is called, the engine now:
1. Gets the namespace where the method was declared (from class name)
2. Gets the namespace of the calling code (zend_get_caller_namespace)
3. Compares namespaces: must match exactly
4. Throws error if namespaces don't match
This applies to:
* Instance methods (zend_std_get_method)
* Static methods (zend_std_get_static_method)
* Constructors (zend_std_get_constructor)
* Callable verification (zend_is_callable_at_frame)
0 commit comments