[php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/exif (#23153)
| From: | Daniel Scherzer via GitHub | Date: | Sat, 14 Nov 2026 01:22:15 +0000 |
| Subject: | [php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/exif (#23153) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143696@lists.php.net to get a copy of this message | ||
Author: Daniel Scherzer (DanielEScherzer)
Committer: GitHub (web-flow)
Pusher: DanielEScherzer
Date: 2026-11-13T17:22:12-08:00
Commit: https://github.com/php/php-src/commit/2fc09c37f50cbe3269add58e1bfbe26ca94d1913
Raw diff: https://github.com/php/php-src/commit/2fc09c37f50cbe3269add58e1bfbe26ca94d1913.diff
[
%pS migration] Use %pS in ext/exif (#23153)
Changed paths:
M ext/exif/exif.c
Diff:
diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index da0245caae86..7ae86d869b49 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -110,7 +110,7 @@ ZEND_INI_MH(OnUpdateEncode)
size_t return_size;
if (FAILURE == zend_multibyte_parse_encoding_list(ZSTR_VAL(new_value), ZSTR_LEN(new_value),
&return_list, &return_size, 0)) {
- php_error_docref(NULL, E_WARNING, "Illegal encoding ignored: '%s'",
ZSTR_VAL(new_value));
+ php_error_docref(NULL, E_WARNING, "Illegal encoding ignored: '%pS'",
new_value);
return FAILURE;
}
pefree((void *) return_list, 0);
@@ -125,7 +125,7 @@ ZEND_INI_MH(OnUpdateDecode)
size_t return_size;
if (FAILURE == zend_multibyte_parse_encoding_list(ZSTR_VAL(new_value), ZSTR_LEN(new_value),
&return_list, &return_size, 0)) {
- php_error_docref(NULL, E_WARNING, "Illegal encoding ignored: '%s'",
ZSTR_VAL(new_value));
+ php_error_docref(NULL, E_WARNING, "Illegal encoding ignored: '%pS'",
new_value);
return FAILURE;
}
pefree((void *) return_list, 0);