[php-src] master: [`%pS` migration] Use `%pS` in ext/spl/php_spl.c

From: Date: Sat, 24 Oct 2026 03:34:55 +0000
Subject: [php-src] master: [`%pS` migration] Use `%pS` in ext/spl/php_spl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-142651@lists.php.net to get a copy of this message
Author: Daniel Scherzer (DanielEScherzer) Date: 2026-10-23T19:38:18-07:00 Commit: https://github.com/php/php-src/commit/eb95848903579f9d8023be0eaf13b30479ba725b Raw diff: https://github.com/php/php-src/commit/eb95848903579f9d8023be0eaf13b30479ba725b.diff [%pS migration] Use %pS in ext/spl/php_spl.c Changed paths: M ext/spl/php_spl.c Diff: diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index 0c5f1ba99c19..a3b0bfbe770e 100644 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -42,7 +42,7 @@ static zend_class_entry * spl_find_ce_by_name(zend_string *name, bool autoload) { zend_class_entry *ce = zend_lookup_class_ex(name, NULL, autoload ? 0 : ZEND_FETCH_CLASS_NO_AUTOLOAD); if (ce == NULL) { - php_error_docref(NULL, E_WARNING, "Class %s does not exist%s", ZSTR_VAL(name), autoload ? " and could not be loaded" : ""); + php_error_docref(NULL, E_WARNING, "Class %pS does not exist%s", name, autoload ? " and could not be loaded" : ""); return NULL; } @@ -502,7 +502,7 @@ static void spl_build_class_list_string(zval *entry, char **list) /* {{{ */ { char *res; - spprintf(&res, 0, "%s, %s", *list, Z_STRVAL_P(entry)); + spprintf(&res, 0, "%s, %pS", *list, Z_STR_P(entry)); efree(*list); *list = res; } /* }}} */

« previous php.cvs (#142651) next »