ID: 37376 Updated by: [EMAIL PROTECTED] Reported By: dan+php dot net at obluda dot cz -Status: Open +Status: Closed Bug Type: Compile Failure Operating System: FreeBSD 4.11 PHP Version: 5.1.4 New Comment:
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 http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Ilia fixed it in CVS. Previous Comments: ------------------------------------------------------------------------ [2006-05-09 10:02:26] dan+php dot net at obluda dot cz Description: ------------ 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: -------------- #else sa_t sa; socklen_t len = sizeof(sa); FCGI_LOCK(req->listen_socket); req->fd = accept(req->listen_socket, (struct sockaddr *)&sa, &len); FCGI_UNLOCK(req->listen_socket); #endif --------------- The fix: cover the block starting sa_t sa declaration and ending FCGI_UNLOCK function call into {} Reproduce code: --------------- N/A Expected result: ---------------- N/A Actual result: -------------- N/A ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37376&edit=1
