Frank Stolle
6a905a9a3c
Fix #66479 : Wrong response to FCGI_GET_VALUES
...
Requesting Get-Values via FCGI caused an "endless" loop over the last requested parameter and ended with an invalid response. this patch solves this loop bug.
Conflicts:
sapi/cgi/fastcgi.c
2015-02-01 00:35:23 -08:00
Stanislav Malyshev
af1f867308
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Use better constant since MAXHOSTNAMELEN may mean shorter name
use right sizeof for memset
2015-01-31 21:48:14 -08:00
Stanislav Malyshev
b30a6d6018
Use better constant since MAXHOSTNAMELEN may mean shorter name
2015-01-31 21:46:56 -08:00
Stanislav Malyshev
237128603f
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Add mitigation for CVE-2015-0235 (bug #68925 )
2015-01-31 19:08:37 -08:00
Stanislav Malyshev
0f9c708229
Add mitigation for CVE-2015-0235 (bug #68925 )
2015-01-31 19:08:13 -08:00
Xinchen Hui
8c2d91761a
Also Fixed #68571 in CGI SAPI, and some cleanup
2015-01-27 22:11:23 +08:00
Xinchen Hui
73c1be2653
Bump year
2015-01-15 23:26:03 +08:00
Anatol Belski
fdfc31a4f7
fixed the cast and incompatible pointer warning
2014-09-12 14:36:00 +02:00
Xinchen Hui
47c9027772
Bump year
2014-01-03 11:06:16 +08:00
Xinchen Hui
c0d060f5c0
Bump year
2014-01-03 11:04:26 +08:00
Xinchen Hui
a666285bc2
Happy New Year
2013-01-01 16:37:09 +08:00
Xinchen Hui
0a7395e009
Happy New Year
2013-01-01 16:28:54 +08:00
Felipe Pena
8775a37559
- Year++
2012-01-01 13:15:04 +00:00
Felipe Pena
4e19825281
- Year++
2012-01-01 13:15:04 +00:00
Dmitry Stogov
10cfbb814f
Added checks for malformated FastCGI requests (Edgar Frank)
2011-01-19 08:38:25 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Dmitry Stogov
bd8f3908c4
Reverted wrong patch
2010-09-20 10:45:22 +00:00
Kalle Sommer Nielsen
210fe80bd5
Fix incompatible types, we need to use a char here for recv()
2010-09-19 19:18:30 +00:00
Dmitry Stogov
c290767ed7
Fixed bug #46723 (FastCGI persistent connection is incredibly slow due to TCP ack delay).
2010-09-06 11:11:40 +00:00
Felipe Pena
7396657fc1
- Fixed compiler warning (missing return statement)
2010-09-01 23:21:03 +00:00
Dmitry Stogov
6bc16cce8f
Reduced overhead of FastCGI using near-perfect hash function and predcalculated hash values.
2010-09-01 15:34:48 +00:00
Dmitry Stogov
001d83dc47
invalid length
2010-09-01 14:42:43 +00:00
Dmitry Stogov
d4c2c6c6ba
Don't check FCGI_WEB_SERVER_ADDRS for UNIX sockets
2010-08-27 08:50:32 +00:00
Dmitry Stogov
a95dd97752
Added apache compatible functions (apache_child_terminate, getallheaders, apache_request_headers, apache_response_headers) to FastCGI SAPI
2010-08-27 08:34:44 +00:00
Dmitry Stogov
d663b9cc77
Don't try to read the rest of malformed FCGI requests, close immediately. It saves one recv() call for proper FCGI request.
2010-08-25 13:48:16 +00:00
Dmitry Stogov
7fc86e5cb4
ws
2010-08-25 11:44:15 +00:00
Kalle Sommer Nielsen
250fcf9317
Nuke compiler warning, wrong fix that shouldn't have been in the previously commit
2010-08-18 18:00:33 +00:00
Kalle Sommer Nielsen
65d031d3da
Use the TSRMLS_DC/TSRMLS_CC macros instead of TSRMLS_FETCH()
2010-08-18 12:59:52 +00:00
Dmitry Stogov
bfbfd15a2a
improved performance of FastCGI request parsing
2010-08-18 08:22:41 +00:00
Dmitry Stogov
d22dff0903
reduced request processing overhead
2010-07-05 15:40:54 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Antony Dovgal
6a9d78f102
fix minor leak in CGI sapi (happened once per child)
2009-12-23 09:40:28 +00:00
Pierre Joye
48d031aa6e
- fix build
2009-08-26 19:17:32 +00:00
Ilia Alshanetsky
19f11e401d
Fixed variable clobbering
2009-08-26 15:29:06 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Pierre Joye
cd57fe323d
- WS
2008-12-11 10:22:12 +00:00
Pierre Joye
38b1e4c702
- ws
2008-12-11 00:13:48 +00:00
Matt Wilmas
a31c7ebdff
MFH: Fixed bug #46782 (fastcgi.c parse error)
2008-12-07 10:55:16 +00:00
Arnaud Le Blanc
e3c556c85e
MFH: Fixed FCGI_GET_VALUES requests ( fixes #45522 )
2008-10-21 03:19:28 +00:00
Dmitry Stogov
ced680941a
Fixed bug #45786 (FastCGI process exited unexpectedly)
2008-08-26 09:56:08 +00:00
Dmitry Stogov
5304e5631f
Fix for bug #45786 (FastCGI process exited unexpectedly)
2008-08-18 10:49:35 +00:00
Dmitry Stogov
c27eba9bcf
Fixed bug #45423 (fastcgi parent process doesn't invoke php_module_shutdown before shutdown) (basant dot kukreja at sun dot com)
2008-07-15 13:11:19 +00:00
Dmitry Stogov
9e4d03885e
- Fixed possible stack buffer overflow in FastCGI SAPI. (Andrey Nigmatulin)
...
- Fixed sending of uninitialized paddings which may contain some information.
(Andrey Nigmatulin)
2008-04-03 10:24:58 +00:00
Dmitry Stogov
f27c1b9d07
optimization
2008-02-15 14:45:42 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Dmitry Stogov
dd8c8d05e8
Added checks for malformated FastCGI requests (Mattias Bengtsson)
2007-09-07 08:26:47 +00:00
Dmitry Stogov
3a5501e0d4
ECONNABORTED is not a critical error (Andrei Nigmatulin)
2007-07-09 11:48:39 +00:00
Dmitry Stogov
23409a4bbf
Fixed crash on "php -b 1234 -unknown-option"
2007-05-21 09:08:13 +00:00
Dmitry Stogov
6e8438633b
Fixed bug #41291 (FastCGI does not set SO_REUSEADDR). (fmajid at kefta dot com)
2007-05-10 15:21:02 +00:00
Dmitry Stogov
857f992cd3
Removed wrong size_t definition
2007-04-09 15:39:59 +00:00