[php-src] master: Reflection: use `%pS` for new `ReflectionMethod::getClosure()` error

From: Date: Tue, 17 Nov 2026 18:48:14 +0000
Subject: [php-src] master: Reflection: use `%pS` for new `ReflectionMethod::getClosure()` error
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143778@lists.php.net to get a copy of this message
Author: Daniel Scherzer (DanielEScherzer) Date: 2026-11-17T10:46:23-08:00 Commit: https://github.com/php/php-src/commit/ac377d55a9e7af2e1dd16446a9a1a7a7d6bd300e Raw diff: https://github.com/php/php-src/commit/ac377d55a9e7af2e1dd16446a9a1a7a7d6bd300e.diff Reflection: use %pS for new ReflectionMethod::getClosure() error Changed paths: M ext/reflection/php_reflection.c Diff: diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index c142c78449dc..912be937a4be 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3323,8 +3323,8 @@ ZEND_METHOD(ReflectionMethod, getClosure) if (mptr->common.fn_flags & ZEND_ACC_ABSTRACT) { zend_throw_exception_ex(reflection_exception_ptr, 0, - "Trying to create a closure from abstract method %s::%s()", - ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.function_name)); + "Trying to create a closure from abstract method %pS::%pS()", + mptr->common.scope->name, mptr->common.function_name); RETURN_THROWS(); }

« previous php.cvs (#143778) next »