1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 07:28:09 +02:00
Commit Graph

230 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
Scott MacVicar 352c3a7f1b Fixed bug #43954 (Memory leak when sending the same HTTP status code more than once.) 2008-01-28 16:08:14 +00:00
Sebastian Bergmann 9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Dmitry Stogov 8dbae457d5 Fixed crash because of uninitialized SG(sapi_headers).mimetype 2007-12-03 16:04:47 +00:00
Jani Taskinen 869a00ee3f - Removed leftovers from nuking safe-mode 2007-07-16 12:58:23 +00:00
Rasmus Lerdorf 5c0389a6f8 Optimize sapi_get_request_time() slightly making it use the cached time
and also checking if there is a server_context before trying to call
the request_time sapi hook.
2007-05-25 09:19:05 +00:00
Dmitry Stogov 00e9c1b1bf ZTS fix 2007-04-25 14:18:15 +00:00
Antony Dovgal e6e242f418 MFB: Fix crashes when SAPI handlers are overriden in dl()-ed extensions 2007-04-25 11:19:10 +00:00
Dmitry Stogov 2908322c14 WIN64 support 2007-04-16 09:43:53 +00:00
Sebastian Bergmann 3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Ilia Alshanetsky e88897ec7b MFB: Fixed bug #39984 (redirect response code in header() could be ignored
in CGI sapi).
2006-12-31 19:22:17 +00:00
Antony Dovgal 4bfad779d7 fix ws, cs and overall code readability 2006-12-21 21:49:13 +00:00
Antony Dovgal 58673959f9 fix possible invalid read (reproducible only on big-endian machines) 2006-12-18 13:15:18 +00:00
Michael Wallner 2dc5f6de5d - the Vary header for zlib.output_compression is now handled inside the output handler 2006-08-30 12:25:56 +00:00
Michael Wallner 231ad17475 - explicit usage of TS macros
# this could have been raised a lot earlier
2006-06-03 11:19:44 +00:00
Michael Wallner 4ce0141713 - new output control code
# scan README.NEW-OUTPUT-API to get a grasp
# tree has been tagged with BEFORE_NEW_OUTPUT_API
#
# TODO:
#  - improve existing output handlers
#  - move zlib.output_compression cruft from SAPI.c to zlib.c
#  - output_encoding handling was ambigious, resp. is undefined yet
#  - more tests
2006-06-02 19:51:43 +00:00
Rasmus Lerdorf 839c3e24a3 MFB input filter hook for getenv() 2006-05-10 21:25:01 +00:00
Andrei Zmievski 19897a5f44 UTODO note 2006-03-24 00:25:49 +00:00
Ilia Alshanetsky 27e175eef0 So long safe_mode mode.
Also removed the magic_quotes configure option, no longer relevant since
the magic is gone :-).
2006-03-08 14:41:45 +00:00
Dmitry Stogov 09ca61c125 Made server wide switch for unicode on/off (according to PDM). 2006-02-13 10:23:59 +00:00
foobar 251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
foobar 2b1085d103 fix typo 2005-12-30 05:39:38 +00:00
Ilia Alshanetsky a4861d1512 Prevent header injection by limiting each header to a single line. 2005-12-06 03:39:26 +00:00
foobar 8c633a099f - Revert bad patch. This is wrong way to handle leak in "php -m" 2005-11-06 22:07:12 +00:00
Michael Wallner ab95f1981c - sapi_header_op(SAPI_HEADER_(REPLACE|ADD), {NULL, 0, 0}) caused HTTP response splitting
- sapi_send_headers() already takes care of default_content_type (left over of fix for bug #29983)
2005-11-02 14:27:02 +00:00
Ilia Alshanetsky c1a09f6399 MFB51: Fixed minor memory leak triggered by: -dzlib.output_compression=1 -m 2005-11-01 23:02:52 +00:00
Ilia Alshanetsky 50686f4d7c Fixed bug #29983 (PHP does not explicitly set mime type & charset). 2005-10-19 20:30:38 +00:00
Andrei Zmievski 264cec8be6 Unicode support. 2005-08-11 23:36:07 +00:00
foobar 23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Ilia Alshanetsky 0131b2b032 Fixed double-free in the digest authentication handling.
# Found and Reported by Stefan Esser
2005-07-12 16:53:30 +00:00
Rui Hirokawa 8235a70ef9 added a server variable PHP_AUTH_DIGEST to support HTTP Digest Authentication. 2005-04-04 15:06:36 +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
Andrey Hristov 9e939133d2 FR 32275 - fifth parameter to preg_replace() to count number of replaces
made.
#it would be nice if someone of the doc team documents it. thanks!
2005-03-12 12:03:50 +00:00
Moriyoshi Koizumi 5e33c04e95 - Fixed bug #32109 ($_POST is not populated in multithreaded environment). 2005-03-05 16:41:13 +00:00
Moriyoshi Koizumi b19d28907e - Silly typo. 2005-02-22 05:07:37 +00:00
foobar 498cce1f80 Nuke unused variables when PCRE is not compiled in 2005-02-21 21:00:04 +00:00
foobar 42599f8191 Remove the useless TSRM_FETCH calls 2005-02-21 20:57:18 +00:00
Moriyoshi Koizumi 0d7845384f - Fix bug #28568 (known_post_content_types is not thread safe).
# What is eventually necessiated is entire SAPI redesign, I think.
2005-02-21 15:14:02 +00:00
Stefan Esser c02b2d2d45 Fixed: Correctly Initialize fields 2004-11-28 13:32:29 +00:00
Andi Gutmans 216853c0db - Apply realpath() cache patch. We don't use it if we're in safe_mode and
- friends (which are quite slow anyway).
- If it proves to be stable I'll remove the #ifdef's in a few weeks.
2004-10-05 00:42:25 +00:00
Brian France 2f97097e0f If you send a post with a content-type header and then the next post without the content-type header, raw_post_data will not be set. This is because SG(request_info).post_entry is set to the first requests function pointer which makes it follow the wrong code path. 2004-08-19 20:26:39 +00:00
Rasmus Lerdorf 3166314d89 Reset global request_time in sapi_activate. Reset it in sapi_deactivate
too, although I can't see why that would be necessary, but most of the
other sapi globals are reset there as well.
2004-08-11 06:18:25 +00:00
Rasmus Lerdorf cad60c3760 Add SAPI hook to get the request time if provided by the web server,
otherwise call time(0) on the first call and store it so subsequent
calls will get the same time.  Hook support for Apache1/2 included.
2004-08-10 17:40:00 +00:00
Ilia Alshanetsky b8c9e83664 Fixed bug #28692 (\0 in Authenticate header passed via safe_mode). 2004-06-08 13:23:38 +00:00
Ilia Alshanetsky ff5b2d27ae Fixed bug #28670 (WWW-Authentication header mangling with PCRE in safe_mode
adds extra spaces).
2004-06-07 13:51:50 +00:00
Stefan Esser 7dc95709c8 break is better 2004-05-25 22:12:40 +00:00
Marcus Boerger bca4347064 Fixed bug #27687 (Bug Adding Default Charset to 'text/*' Content-Type Header 2004-03-25 08:42:00 +00:00
Ilia Alshanetsky 09517318b1 Fixed bug #27530 (broken http auth when safe_mode is on and PCRE is
disabled).
2004-03-09 02:24:02 +00:00
Andi Gutmans dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Derick Rethans 750b0338bf - Fix sapi_input_filter patch. Returning 1 from the filter handler should
make PHP register the variable, returning 0 shouldn't. The new length of
  the variables being filtered is now returned in the new_val_len argument
  of the function.
2003-11-29 15:24:35 +00:00