[php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/spl/spl_observer.c
| From: | Daniel Scherzer | Date: | Sat, 24 Oct 2026 03:35:05 +0000 |
| Subject: | [php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/spl/spl_observer.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142656@lists.php.net to get a copy of this message | ||
Author: Daniel Scherzer (DanielEScherzer)
Date: 2026-10-23T19:38:23-07:00
Commit: https://github.com/php/php-src/commit/0e63b7a2552ce716368951bcc4609b8b38f43785
Raw diff: https://github.com/php/php-src/commit/0e63b7a2552ce716368951bcc4609b8b38f43785.diff
[
%pS migration] Use %pS in ext/spl/spl_observer.c
Changed paths:
M ext/spl/spl_observer.c
Diff:
diff --git a/ext/spl/spl_observer.c b/ext/spl/spl_observer.c
index 7ad54781884c..72d602bb2107 100644
--- a/ext/spl/spl_observer.c
+++ b/ext/spl/spl_observer.c
@@ -106,8 +106,8 @@ static zend_result spl_object_storage_get_hash(zend_hash_key *key, spl_SplObject
} else {
/* TODO PHP 9: Remove this as this will be enforced from the return type */
if (UNEXPECTED(Z_TYPE(rv) != IS_STRING)) {
- zend_type_error("%s::getHash(): Return value must be of type string, %s returned",
- ZSTR_VAL(intern->std.ce->name), zend_zval_value_name(&rv));
+ zend_type_error("%pS::getHash(): Return value must be of type string, %s returned",
+ intern->std.ce->name, zend_zval_value_name(&rv));
zval_ptr_dtor(&rv);
return FAILURE;
} else {