|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37376 fastcgi.c compile fail with gcc 2.95.4
Submitted: 2006-05-09 10:02 UTC Modified: 2006-05-10 10:17 UTC
From: dan+php dot net at obluda dot cz Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.1.4 OS: FreeBSD 4.11
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
23 - 1 = ?
Subscribe to this entry?

 [2006-05-09 10:02 UTC] dan+php dot net at obluda dot cz
Compile of sapi/cgi/fastcgi.c fail with syntax error on line 692 in the case the compiler allow variable declaration on start of block only (it's the gcc 2.95.4 case).

The relevant code part is:
	sa_t sa;
	socklen_t len = sizeof(sa);
	req->fd = accept(req->listen_socket, (struct sockaddr *)&sa, &len);

The fix: cover the block starting sa_t sa declaration and ending FCGI_UNLOCK function call into {}

Reproduce code:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-10 10:17 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

Ilia fixed it in CVS.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Nov 29 16:01:27 2023 UTC