Skip to content

Commit 820ec86

Browse files
[%pS migration] Use %pS in ext/filter (#23155)
1 parent de784b4 commit 820ec86

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎ext/filter/filter.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ static void php_zval_filter(zval *value, zend_long filter, zend_long flags, zval
259259
zend_throw_exception_ex(
260260
php_filter_failed_exception_ce,
261261
0,
262-
"filter validation failed: object of type %s has no __toString() method",
263-
ZSTR_VAL(ce->name)
262+
"filter validation failed: object of type %pS has no __toString() method",
263+
ce->name
264264
);
265265
ZVAL_NULL(value);
266266
return;
@@ -291,9 +291,9 @@ static void php_zval_filter(zval *value, zend_long filter, zend_long flags, zval
291291
zend_throw_exception_ex(
292292
php_filter_failed_exception_ce,
293293
0,
294-
"filter validation failed: filter %s not satisfied by '%s'",
294+
"filter validation failed: filter %s not satisfied by '%pS'",
295295
filter_func.name,
296-
ZSTR_VAL(copy_for_throwing)
296+
copy_for_throwing
297297
);
298298
zend_string_release(copy_for_throwing);
299299
return;
@@ -730,8 +730,8 @@ PHP_FUNCTION(filter_input)
730730
zend_throw_exception_ex(
731731
php_filter_failed_exception_ce,
732732
0,
733-
"input value '%s' not found",
734-
ZSTR_VAL(var)
733+
"input value '%pS' not found",
734+
var
735735
);
736736
RETURN_THROWS();
737737
}

0 commit comments

Comments
 (0)