[%pS migration] Use %pS in ext/bcmath (#23147)

This commit is contained in:
Daniel Scherzer authored and GitHub committed 2026-10-04 17:59:37 -07:00
1 parent 89b22fa183
commit 620cd6930f
1 file changed
+4 -4
+4 -4
View File
@@ -971,7 +971,7 @@ static zval *bcmath_number_write_property(zend_object *obj, zend_string *name, z
static void bcmath_number_unset_property(zend_object *obj, zend_string *name, void **cache_slot)
{
if (zend_string_equals(name, ZSTR_KNOWN(ZEND_STR_VALUE)) || zend_string_equals_literal(name, "scale")) {
zend_throw_error(NULL, "Cannot unset readonly property %s::$%s", ZSTR_VAL(obj->ce->name), ZSTR_VAL(name));
zend_throw_error(NULL, "Cannot unset readonly property %pS::$%pS", obj->ce->name, name);
return;
}
@@ -1406,8 +1406,8 @@ failure:
Z_PARAM_PROLOGUE(0, 0); \
if (UNEXPECTED(!(zend_parse_arg_obj(_arg, &(dest_obj), ce, 0) || \
zend_parse_arg_str_or_long(_arg, &(dest_str), &(dest_long), &_dummy, 0, _i)))) { \
zend_argument_type_error(_i, "must be of type int, string, or %s, %s given", \
ZSTR_VAL(bcmath_number_ce->name), zend_zval_value_name(_arg)); \
zend_argument_type_error(_i, "must be of type int, string, or %pS, %s given", \
bcmath_number_ce->name, zend_zval_value_name(_arg)); \
_error_code = ZPP_ERROR_FAILURE; \
break; \
}
@@ -1900,7 +1900,7 @@ PHP_METHOD(BcMath_Number, __unserialize)
return;
fail:
zend_throw_exception_ex(NULL, 0, "Invalid serialization data for %s object", ZSTR_VAL(bcmath_number_ce->name));
zend_throw_exception_ex(NULL, 0, "Invalid serialization data for %pS object", bcmath_number_ce->name);
RETURN_THROWS();
}