Skip to content

Use correct format string in curl debug messages#22723

Merged
TimWolla merged 2 commits into
php:masterfrom
Sjord:curl-debug-format
Jul 14, 2026
Merged

Use correct format string in curl debug messages#22723
TimWolla merged 2 commits into
php:masterfrom
Sjord:curl-debug-format

Conversation

@Sjord

@Sjord Sjord commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Use %p for pointers, %zu for size_t. This only applies when PHP_CURL_DEBUG is enabled. If so, it solves compiler warnings and prints values correctly.

Use `%p` for pointers, `%zu` for size_t. This only applies when
PHP_CURL_DEBUG is enabled. If so, it solves compiler warnings,
avoids undefined behavior and prints values correctly.
@Sjord
Sjord requested a review from adoy as a code owner July 14, 2026 08:40
Comment thread ext/curl/interface.c
Comment thread ext/curl/interface.c
@TimWolla
TimWolla merged commit 4ba42f6 into php:master Jul 14, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants