[php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/standard/http.c

From: Date: Sun, 01 Nov 2026 20:32:13 +0000
Subject: [php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/standard/http.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143183@lists.php.net to get a copy of this message
Author: Daniel Scherzer (DanielEScherzer) Date: 2026-11-01T12:30:52-08:00 Commit: https://github.com/php/php-src/commit/921cb72ec85b67346a153ad47430e98f42eca83b Raw diff: https://github.com/php/php-src/commit/921cb72ec85b67346a153ad47430e98f42eca83b.diff [%pS migration] Use %pS in ext/standard/http.c Changed paths: M ext/standard/http.c Diff: diff --git a/ext/standard/http.c b/ext/standard/http.c index eee1018672bd..7d8f8786da37 100644 --- a/ext/standard/http.c +++ b/ext/standard/http.c @@ -71,7 +71,7 @@ static void php_url_encode_scalar(zval *scalar, smart_str *form_str, case IS_OBJECT: ZEND_ASSERT(Z_OBJCE_P(scalar)->ce_flags & ZEND_ACC_ENUM); if (Z_OBJCE_P(scalar)->enum_backing_type == IS_UNDEF) { - zend_value_error("Unbacked enum %s cannot be converted to a string", ZSTR_VAL(Z_OBJCE_P(scalar)->name)); + zend_value_error("Unbacked enum %pS cannot be converted to a string", Z_OBJCE_P(scalar)->name); return; } scalar = zend_enum_fetch_case_value(Z_OBJ_P(scalar)); @@ -265,7 +265,7 @@ static zend_result cache_request_parse_body_option(HashTable *options, zval *opt zend_string *errstr; result = zend_ini_parse_quantity(Z_STR_P(option), &errstr); if (errstr) { - zend_error(E_WARNING, "%s", ZSTR_VAL(errstr)); + zend_error(E_WARNING, "%pS", errstr); zend_string_release(errstr); } } else if (Z_TYPE_P(option) == IS_LONG) { @@ -322,7 +322,7 @@ static zend_result cache_request_parse_body_options(HashTable *options) break; } - zend_value_error("Invalid key \"%s\" in $options argument", ZSTR_VAL(key)); + zend_value_error("Invalid key \"%pS\" in $options argument", key); return FAILURE; } ZEND_HASH_FOREACH_END();

« previous php.cvs (#143183) next »