Commit Graph

176 Commits

Author SHA1 Message Date
Rasmus Lerdorf
b911467d1d MFB
Here are the signal changes from the 5.3 branch that optimizes signal
handler registration and switches from longjmp to siglongjmp in order
to make signal mask handling consistent across different UNIX operating
systems.
2008-03-19 16:37:49 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Jani Taskinen
dee01c13ad - Changed all AC_ARG_* options to PHP_ARG_* options and cleaned up some 2007-07-11 23:10:14 +00:00
foobar
6504c24187 - Fixed bug #41576 (misbehaviour when using --without-apxs) 2007-06-03 20:26:45 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Rasmus Lerdorf
3c0411c496 Fix for bug #32263
This adds proto_num to request_info.  It is defaulted to HTTP 1.0 (1000)
such that it has a valid value even if the underlying sapi doesn't set it
correctly.  It is then used to determine if a 302 or a 303 should be sent
on a Location redirect.  Any non GET/HEAD HTTP 1.1 redirect will get a 303
instead of a 302 to be compatible with the HTTP spec.
2005-03-14 19:25:39 +00:00
Rasmus Lerdorf
fdaa130f3a Add the new request_time sapi struct entry to all the sapis. Some of these
may have ways of getting the request time without the extra syscall, but
for now let's just make sure we don't crash and people will eventually
fill these in where applicable.
2004-12-20 19:33:41 +00:00
foobar
f4983c0d3f - Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5 2004-01-17 13:00:38 +00:00
foobar
ccfc46b0aa - Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
foobar
e4323fa6ea - Fixed bug #26438 (error in thttpd SAPI installation) 2003-11-27 23:04:10 +00:00
Sascha Schumann
a26c1e1da1 Embed date of last modification 2003-10-14 08:11:37 +00:00
Sascha Schumann
5e3de075fb Fix potential buffer overrun 2003-09-20 12:45:05 +00:00
Sascha Schumann
6dcf9c22b5 properly restart syscalls 2003-07-01 05:29:17 +00:00
Sascha Schumann
a5017f0b4c Serialize headers for systems with low IOV_MAX (e.g. Solaris) 2003-06-27 18:41:11 +00:00
Sascha Schumann
e5c5c491fb Simplify/fix logging 2003-06-16 19:11:33 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Sascha Schumann
ef1263a589 Don't corrupt data during request body handling 2003-06-04 05:28:17 +00:00
Sascha Schumann
4247f4b90e Don't return CRLF from broken clients 2003-06-04 05:13:59 +00:00
Sascha Schumann
528c495d68 If there is a content body, enable lingering and disable keep alive. 2003-05-16 22:32:22 +00:00
Sascha Schumann
edd6a6449a Properly timeout post requests 2003-05-15 16:54:37 +00:00
Sascha Schumann
e473374ff3 Don't emit Content-Length in a 304 reply
Don't falsely claim HEAD method
Add PHP to HTTP server string
2003-05-15 16:42:43 +00:00
Sascha Schumann
3eab2fb3bd improve keep alive handling 2003-05-12 01:29:21 +00:00
Sascha Schumann
40dd3617eb add premium thttpd support 2003-05-12 01:02:08 +00:00
Sascha Schumann
33a10b342e Improved protection against hostname attacks 2003-05-06 19:17:50 +00:00
Sascha Schumann
bd6ff4ca43 fix typo 2003-05-06 10:15:33 +00:00
Sascha Schumann
4f8aeebf64 improve portability 2003-05-06 10:14:20 +00:00
Sascha Schumann
833d734af1 cleanup 2003-05-01 20:49:42 +00:00
Sascha Schumann
9f4f0cec39 Fix Content-Encoding header lacking CRLF 2003-04-28 22:07:18 +00:00
Sascha Schumann
17f3aca625 Properly update the global httpd_time_now and remove php_makefile from diff 2003-04-21 01:08:23 +00:00
Sascha Schumann
8e165ea050 fix two uninitialized reads 2003-04-16 13:43:23 +00:00
Sascha Schumann
4ff425c157 Nuke all sn?printf's and rely on the optimized httpd_ntoa to
convert the IP to a string representation.
2003-04-16 13:37:34 +00:00
Sascha Schumann
cd403e3b51 Merging some Premium thttpd improvements, notably
- periodic update of date strings
- caching of Last-Modified values
- use of smart_str'ings for crafting HTTP header (static files)
  and inside make_log_entry
- buffered log writing
- httpd_ntoa is about 8 times faster

Overall improvement: Around 50% faster now
2003-04-16 09:20:55 +00:00
Sascha Schumann
fb6c60c46c some improvements 2003-02-19 10:57:21 +00:00
Sascha Schumann
778378dcc6 include limits.h for portability 2003-02-13 02:30:10 +00:00
Sascha Schumann
6ab6ad12a0 portability work 2003-02-13 02:24:38 +00:00
Sascha Schumann
e3831c2ef5 Add "log to stdout" feature 2003-02-11 00:58:54 +00:00
Sascha Schumann
ba32a619ae use SUCCESS/FAILURE instead of 0/-1 2003-02-09 21:15:55 +00:00
Sascha Schumann
ebedf060a5 Fix POST handling once and for all. The daemon now never blocks and handles
uploads of up to 2GB on 32 bit platforms.

Uploads >16KB are put into a file-backed mmap area.

SG(request_info).content_type got corrupted somewhere. As a workaround,
we provide SAPI with a duplicate of the original string.
2003-01-17 18:53:22 +00:00
Sebastian Bergmann
2c5d4b8c23 Bump year. 2002-12-31 15:59:15 +00:00
Sascha Schumann
95fead0b9f add missing line 2002-11-29 11:34:08 +00:00
Sascha Schumann
09f463ddae Add sapi_get_fd() and implement it for the Apache/thttpd SAPIs. 2002-11-26 05:15:55 +00:00
Sascha Schumann
a8136b4dba Defend against pipelined requests on persistent connections as used by
IRCG. These could cause thttpd to start a second request in the same
connection context, and thereby causing real damage.

Mozilla 1.0.1 is buggy in that context: When HTTP/1.1 pipelining is
enabled (defaults to off), it will send any number of requests over
a persistent connection (which is fine), even after it has received
a "Connection: close" header field in a subsequent response header.
This blatantly violates RFC 2616, section 8.1.2. Because it cannot
receive any response on the dead connection, the download manager
pops up and tries to download a file (which never arrives).

Also, we don't try to send a 400 message anymore, if the connection
dies.
2002-11-10 15:21:13 +00:00
Sascha Schumann
f2f443f066 s/PHP_API/PHP_API_VERSION/ 2002-11-08 13:29:32 +00:00
Sascha Schumann
8d25447f30 let this source file compile with php 4.2.x 2002-11-07 11:56:02 +00:00
Sascha Schumann
eb0141913c Add two missing entries 2002-11-07 11:38:03 +00:00
Sascha Schumann
10a861f93c - use TCP_DEFER_ACCEPT
- don't timeout connections which are managed by IRCG
- don't generate invalid HTTP replies, if the client did not send a
  request line yet
2002-11-06 17:31:03 +00:00
Sascha Schumann
082d9c4936 Simplify handler dispatching mechanism 2002-11-01 11:51:35 +00:00