[php-src] master: streams: use PRIu32 format specifier rather than u

Gina Peter Banyard <[email protected]> Mon, 27 Jul 2026 18:32:12 +0000
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Gina Peter Banyard (Girgias)
Date: 2026-07-27T19:32:02+01:00

Commit: https://github.com/php/php-src/commit/c852fce5a780bc72ea4259a45b804ee323080a37
Raw diff: https://github.com/php/php-src/commit/c852fce5a780bc72ea4259a45b804ee323080a37.diff

streams: use PRIu32 format specifier rather than u

The value is a uint32_t and this may depend on the platform how it is represented

Changed paths:
  M  main/streams/stream_errors.c


Diff:

diff --git a/main/streams/stream_errors.c b/main/streams/stream_errors.c
index 9ee6127df777..5b52bad1e1ad 100644
--- a/main/streams/stream_errors.c
+++ b/main/streams/stream_errors.c
@@ -283,7 +283,7 @@ PHPAPI php_stream_error_operation *php_stream_error_operation_begin(void)
 
 	if (state->operation_depth >= PHP_STREAM_ERROR_MAX_DEPTH) {
 		php_error_docref(NULL, E_WARNING,
-				"Stream error operation depth exceeded (%u), possible infinite recursion",
+				"Stream error operation depth exceeded (%"PRIu32"), possible infinite recursion",
 				state->operation_depth);
 		return NULL;
 	}