From 9d81b454817ad90c2e3ddc0b8e5560e385cd0b76 Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Sat, 8 Aug 2026 18:19:15 -0700 Subject: [PATCH] [`%pS` migration] Use `%pS` in ext/zip --- ext/zip/php_zip.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 4bc74796889b..99ff7562e39e 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -961,7 +961,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); } @@ -1676,8 +1676,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) @@ -1691,8 +1691,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 */