|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-10 10:17 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
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