Skip to content

Commit 71f4a65

Browse files
[%pS migration] Use %pS in ext/filter
1 parent 62cec66 commit 71f4a65

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;
@@ -718,8 +718,8 @@ PHP_FUNCTION(filter_input)
718718
zend_throw_exception_ex(
719719
php_filter_failed_exception_ce,
720720
0,
721-
"input value '%s' not found",
722-
ZSTR_VAL(var)
721+
"input value '%pS' not found",
722+
var
723723
);
724724
RETURN_THROWS();
725725
}

0 commit comments

Comments
 (0)