[php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/zip (#23176)
| From: | Daniel Scherzer via GitHub | Date: | Mon, 05 Oct 2026 05:53:42 +0000 |
| Subject: | [php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/zip (#23176) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141940@lists.php.net to get a copy of this message | ||
Author: Daniel Scherzer (DanielEScherzer)
Committer: GitHub (web-flow)
Pusher: DanielEScherzer
Date: 2026-10-04T22:53:39-07:00
Commit: https://github.com/php/php-src/commit/bfa945cf767ba868218e57d737cfe6d64ead388b
Raw diff: https://github.com/php/php-src/commit/bfa945cf767ba868218e57d737cfe6d64ead388b.diff
[
%pS migration] Use %pS in ext/zip (#23176)
Changed paths:
M ext/zip/php_zip.c
Diff:
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c
index a095f4fcca32..40f4a34f34f8 100644
--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -1022,7 +1022,7 @@ static zval *php_zip_write_property(zend_object *object, zend_string *name,
zval
}
if (hnd != NULL) {
- zend_throw_error(NULL, "Cannot write read-only property %s::$%s",
ZSTR_VAL(object->ce->name), ZSTR_VAL(name));
+ zend_throw_error(NULL, "Cannot write read-only property %pS::$%pS",
object->ce->name, name);
return &EG(error_zval);
}
@@ -1793,8 +1793,8 @@ PHP_METHOD(ZipArchive, __serialize)
ZEND_PARSE_PARAMETERS_NONE();
zend_throw_exception_ex(NULL, 0,
- "Serialization of '%s' is not allowed, override __serialize() and __unserialize()
to implement it",
- ZSTR_VAL(Z_OBJCE_P(ZEND_THIS)->name));
+ "Serialization of '%pS' is not allowed, override __serialize() and __unserialize()
to implement it",
+ Z_OBJCE_P(ZEND_THIS)->name);
}
PHP_METHOD(ZipArchive, __unserialize)
@@ -1808,8 +1808,8 @@ PHP_METHOD(ZipArchive, __unserialize)
(void) data;
zend_throw_exception_ex(NULL, 0,
- "Unserialization of '%s' is not allowed, override __serialize() and
__unserialize() to implement it",
- ZSTR_VAL(Z_OBJCE_P(ZEND_THIS)->name));
+ "Unserialization of '%pS' is not allowed, override __serialize() and
__unserialize() to implement it",
+ Z_OBJCE_P(ZEND_THIS)->name);
}
/* {{{ clear the internal status */