[php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/filter (#23155)

From: Date: Fri, 13 Nov 2026 22:50:03 +0000
Subject: [php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/filter (#23155)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143689@lists.php.net to get a copy of this message
Author: Daniel Scherzer (DanielEScherzer) Committer: GitHub (web-flow) Pusher: DanielEScherzer Date: 2026-11-13T14:49:59-08:00 Commit: https://github.com/php/php-src/commit/820ec869ba769f1ccca05f7cbabc24f686c1eed8 Raw diff: https://github.com/php/php-src/commit/820ec869ba769f1ccca05f7cbabc24f686c1eed8.diff [%pS migration] Use %pS in ext/filter (#23155) Changed paths: M ext/filter/filter.c Diff: diff --git a/ext/filter/filter.c b/ext/filter/filter.c index adabe6e6ee9a..ca4a12df386d 100644 --- a/ext/filter/filter.c +++ b/ext/filter/filter.c @@ -259,8 +259,8 @@ static void php_zval_filter(zval *value, zend_long filter, zend_long flags, zval zend_throw_exception_ex( php_filter_failed_exception_ce, 0, - "filter validation failed: object of type %s has no __toString() method", - ZSTR_VAL(ce->name) + "filter validation failed: object of type %pS has no __toString() method", + ce->name ); ZVAL_NULL(value); return; @@ -291,9 +291,9 @@ static void php_zval_filter(zval *value, zend_long filter, zend_long flags, zval zend_throw_exception_ex( php_filter_failed_exception_ce, 0, - "filter validation failed: filter %s not satisfied by '%s'", + "filter validation failed: filter %s not satisfied by '%pS'", filter_func.name, - ZSTR_VAL(copy_for_throwing) + copy_for_throwing ); zend_string_release(copy_for_throwing); return; @@ -730,8 +730,8 @@ PHP_FUNCTION(filter_input) zend_throw_exception_ex( php_filter_failed_exception_ce, 0, - "input value '%s' not found", - ZSTR_VAL(var) + "input value '%pS' not found", + var ); RETURN_THROWS(); }

« previous php.cvs (#143689) next »