Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions ext/zip/php_zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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)
Expand All @@ -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 */
Expand Down
Loading