Skip to content

Conversation

@ndossche
Copy link
Member

@ndossche ndossche commented Jan 9, 2026

This shouldn't be const. Fixes the following warning:

warning: variable 'hdr' is uninitialized when passed as a const pointer argument here
      [-Wuninitialized-const-pointer]
 1054 |         if (safe_read(req, &hdr, sizeof(fcgi_header)) != sizeof(fcgi_header) ||
      |                             ^~~

This shouldn't be const. Fixes the following warning:
```
warning: variable 'hdr' is uninitialized when passed as a const pointer argument here
      [-Wuninitialized-const-pointer]
 1054 |         if (safe_read(req, &hdr, sizeof(fcgi_header)) != sizeof(fcgi_header) ||
      |                             ^~~
```
@ndossche ndossche requested a review from bukka as a code owner January 9, 2026 20:53
@ndossche ndossche merged commit 60b1f59 into php:PHP-8.4 Jan 10, 2026
10 checks passed
ndossche added a commit that referenced this pull request Jan 10, 2026
* PHP-8.4:
  fastcgi: Fix compile warning wrt safe_read() (#20887)
ndossche added a commit that referenced this pull request Jan 10, 2026
* PHP-8.5:
  fastcgi: Fix compile warning wrt safe_read() (#20887)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants