summaryrefslogtreecommitdiff
path: root/main/fastcgi.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-08-301-2/+2
|\
| * Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-08-301-2/+2
| |\
| | * Fixed bug #78469Sergei Turchanov2019-08-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fcgi_accept_request function is supposed to call a FastCGI implementation's on_accept hook when entering an "accepting" stage (that is right before calling "accept"). This hook implementation (fpm_request_accepting) updates a worker state to an "accepting" state which is effectively an "Idle" state, and updates counters on the scoreboard of the corresponding pool (idle++, active--). But this is not done when listening for client connections on a named pipe on Windows platform. In that case a combination of ConnectNamedPipe/WaitForSingleObject is used (to be able to catch in_shutdown as far as I understand), but it is nonetheless functionally equivalent to "accept" call. Also by not calling on_hook neither a worker's state is updated to "accepting" state nor scoreboard counters are updated.
| | * year++Xinchen Hui2018-01-021-1/+1
| | |
| * | Future-proof email addressesZeev Suraski2018-11-011-1/+1
| | |
* | | Remove local variablesPeter Kokot2019-02-031-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* | | Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
| | |
* | | Future-proof email addresses...Zeev Suraski2018-11-011-1/+1
|/ /
* | Remove unused Git attributes identPeter Kokot2018-07-251-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* | Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-1/+1
| | | | | | | | where we sure about string persistence.
* | year++Xinchen Hui2018-01-021-1/+1
| |
* | Added RC_DEBUG exceptionDmitry Stogov2017-11-021-1/+5
| |
* | remove castAnatol Belski2017-07-281-2/+2
|/
* Merge branch 'PHP-7.0' into PHP-7.1Jakub Zelenka2017-04-301-2/+4
|\
| * Fix compiler warnings when compiled against musl libcMichael Heimpold2017-04-301-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | musl libc is complaining when <sys/poll.h> is used instead of <poll.h> so change this. This issue was reported for OpenWrt/LEDE where musl libc is the standard C library instead of e.g. glibc, see the following link for the original PR: https://github.com/openwrt/packages/pull/4263 Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> Signed-off-by: Michael Heimpold <mhei@heimpold.de> -- v3: refined checks/fallback paths as suggested by @bukka v2: rebased to resolve merge conflict in main/php_network.h v1: initial PR
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-02-121-4/+6
|\ \ | |/
| * Fixed bug #69860Denis Yeldandi2017-02-121-4/+6
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-01-071-8/+14
|\ \ | |/
| * Fixed bug #67583Nikita Popov2017-01-071-4/+10
| | | | | | | | | | | | As fcgi_request is an opaque struct as of PHP 7, expose a new API function fcgi_end() which does fcgi_flush() with end=1 and checks/ sets the ->ended flag.
| * Rename fcgi_request.closed to .endedNikita Popov2017-01-071-6/+6
| | | | | | | | | | | | | | "closed" refers to whether FCGI_END_REQUEST has been sent, while the "close" operation does something entirely different. It gets extra confusing when fcgi_is_closed() does not actually return fcgi_request.closed...
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Fixed compilation warningsDmitry Stogov2016-06-281-2/+5
| |
* | Merge branch 'PHP-7.0'Xinchen Hui2016-06-281-1/+0
|\ \ | |/ | | | | | | | | | | | | | | * PHP-7.0: MFH: Fixed fd leak (the origin commit can not be cherry-picked) Conflicts: main/fastcgi.c sapi/cli/ps_title.c
| * MFH: Fixed fd leak (the origin commit can not be cherry-picked)Xinchen Hui2016-06-281-1/+1
| |
* | couple of resource leaks fixes and use after free'sDavid Carlier2016-06-271-0/+1
| |
* | Fixed compilation warningsDmitry Stogov2016-06-211-2/+2
|/
* Fixed bug #72308 (fastcgi_finish_request and logging environment variables)Xinchen Hui2016-06-021-1/+6
|
* fix #71609: Segmentation fault on ZTS with gethostbynameJoe Watkins2016-03-311-1/+1
|
* Also WIN32 sideXinchen Hui2016-01-291-3/+3
|
* Properly read any remaining data when closing FastCGI socketRobin McCorkell2016-01-291-3/+3
|
* Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
| | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
* Encapsulate FastCGI implementation details.Dmitry Stogov2015-06-231-5/+111
| | | | Previously fcgi_request defined in main/fastcgi.h might be treated differently in different files, because of different behavior of #ifdef TCP_NODELAY. This leaded to stack memory corruption and unpredictable crashes.
* reverted 0512b38 and 1411ca5Anatol Belski2015-05-261-27/+27
|
* Micro optimizationsXinchen Hui2015-05-261-15/+13
|
* fcgi_is_allowed should not log errorXinchen Hui2015-05-241-1/+1
|
* add the remaining useful symbols to the exportAnatol Belski2015-05-231-9/+9
|
* implement necessary symbol exportsAnatol Belski2015-05-231-18/+18
|
* Avoid multipy allocating of request envXinchen Hui2015-05-241-2/+7
|
* Use weak function for fcgi_logXinchen Hui2015-05-231-12/+24
|
* Fixed fpm-side (tests passes)Xinchen Hui2015-05-231-119/+188
|
* Use logger pointerXinchen Hui2015-05-191-7/+13
|
* Move fastcgi.c to mainXinchen Hui2015-05-191-0/+1564