[php-src] master: [`%pS` migration] Use `%pS` in ext/standard/proc_open.c
| From: | Daniel Scherzer | Date: | Sun, 01 Nov 2026 20:32:18 +0000 |
| Subject: | [php-src] master: [`%pS` migration] Use `%pS` in ext/standard/proc_open.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143186@lists.php.net to get a copy of this message | ||
Author: Daniel Scherzer (DanielEScherzer)
Date: 2026-11-01T12:30:53-08:00
Commit: https://github.com/php/php-src/commit/4c73172d8b896ae571e84a90b7c740eb629ef470
Raw diff: https://github.com/php/php-src/commit/4c73172d8b896ae571e84a90b7c740eb629ef470.diff
[
%pS migration] Use %pS in ext/standard/proc_open.c
Changed paths:
M ext/standard/proc_open.c
Diff:
diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c
index e63cdbb13e63..99c11dc7c626 100644
--- a/ext/standard/proc_open.c
+++ b/ext/standard/proc_open.c
@@ -938,7 +938,7 @@ static zend_result set_proc_descriptor_to_socket(descriptorspec_item *desc)
if (create_socketpair(sock)) {
zend_string *err = php_socket_error_str(php_socket_errno());
- php_error_docref(NULL, E_WARNING, "Unable to create socket pair: %s", ZSTR_VAL(err));
+ php_error_docref(NULL, E_WARNING, "Unable to create socket pair: %pS", err);
zend_string_release(err);
return FAILURE;
}
@@ -1091,7 +1091,7 @@ static zend_result set_proc_descriptor_from_array(const HashTable *ht,
descripto
/* Set descriptor to slave end of PTY */
retval = set_proc_descriptor_to_pty(&descriptors[ndesc], pty_master_fd, pty_slave_fd);
} else {
- php_error_docref(NULL, E_WARNING, "%s is not a valid descriptor spec/mode",
ZSTR_VAL(ztype));
+ php_error_docref(NULL, E_WARNING, "%pS is not a valid descriptor spec/mode", ztype);
goto finish;
}