[php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/pcntl (#23161)

From: Date: Fri, 30 Oct 2026 18:22:04 +0000
Subject: [php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/pcntl (#23161)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143023@lists.php.net to get a copy of this message
Author: Daniel Scherzer (DanielEScherzer) Committer: GitHub (web-flow) Pusher: DanielEScherzer Date: 2026-10-30T11:22:00-07:00 Commit: https://github.com/php/php-src/commit/b6de2d2877c1267c21ac66bf12920bde968e270b Raw diff: https://github.com/php/php-src/commit/b6de2d2877c1267c21ac66bf12920bde968e270b.diff [%pS migration] Use %pS in ext/pcntl (#23161) Changed paths: M ext/pcntl/pcntl.c Diff: diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 14f26291c045..933e9c4ddc81 100644 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -1803,7 +1803,7 @@ PHP_FUNCTION(pcntl_setcpuaffinity) if (Z_TYPE_P(ncpu) == IS_STRING) { zend_ulong tmp; if (!ZEND_HANDLE_NUMERIC(Z_STR_P(ncpu), tmp)) { - zend_argument_value_error(2, "cpu id invalid value (%s)", ZSTR_VAL(Z_STR_P(ncpu))); + zend_argument_value_error(2, "cpu id invalid value (%pS)", Z_STR_P(ncpu)); PCNTL_CPU_DESTROY(mask); RETURN_THROWS(); }

« previous php.cvs (#143023) next »