Commit 820ec869ba7 for php

commit 820ec869ba769f1ccca05f7cbabc24f686c1eed8
Author: Daniel Scherzer <daniel.e.scherzer@gmail.com>
Date:   Fri Nov 13 14:49:59 2026 -0800

    [`%pS` migration] Use `%pS` in ext/filter (#23155)

diff --git a/ext/filter/filter.c b/ext/filter/filter.c
index adabe6e6ee9..ca4a12df386 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();
 		}