summaryrefslogtreecommitdiff
path: root/main/SAPI.c
Commit message (Collapse)AuthorAgeFilesLines
...
* - Fixed bug #48994 (zlib.output_compression does not ouput HTTP headers when ↵Jani Taskinen2009-08-031-1/+1
| | | | | | | set to a string value) # also fixes bug #35936 (ini.zlib.output-compression Documentation :)
* fix for #47930Stanislav Malyshev2009-04-281-1/+8
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* Added header_remove() (chsc at peytz dotdk, Arnaud)Arnaud Le Blanc2008-11-131-13/+32
| | | | | | | | | | | | | | | | | | | | | | | | | [DOC] proto void header_remove([string header_name]) Removes an HTTP header previously set using header() The header_name parameter is optionnal, all headers are removed if it is not set [SAPIs] The header_handler callback in sapi_module_struct has been changed, it now take a new argument. When it is set to SAPI_HEADER_DELETE, sapi_header->header is the name of an header, header_handler has to delete it. When it is set to SAPI_HEADER_DELETE_ALL, header_handler has to delete all headers. When sapi_header_op_enum is SAPI_HEADER_ADD or _REPLACE, sapi_header->header is in the form "Name: value", header_handler has to add or replace the given header. In all cases, header_handler must not free sapi_header or sapi_header->header. SAPI_HEADER_ADD must be returned if the header has been added or replaced, or 0 in other cases.
* exit_on_timeout patchRasmus Lerdorf2008-03-181-0/+6
| | | | | | | | | | | | | | | | | | | | | After the sigsetjmp change, this is patch #2 in an effort to get some sanity restored to signal handling in PHP. This patch does two things. First, it makes it possible to reset the timeout without resetting the signal handlers. This is important for cases where an extension may have deferred signals in its MINIT in order to implement critical sections. It also lays the groundwork for cleaning up our signal handling and perhaps eventually implementing our own signal deferring mechanism so we can have true critical sections. The second thing this does is to make it possible to terminate the current child process (only for Apache1 at the moment) on a timeout. There are a number of extensions that are unhappy about being longjmp'ed out of and when this happens on a timeout they are left in an inconsistent state. By turning on exit_on_timeout you can now force the process to terminate on a timeout which will clean up any hanging locks and/or memory left hanging after the longjmp.
* MFH: Fixed bug #43954 (Memory leak when sending the same HTTP status code ↵Scott MacVicar2008-01-281-0/+4
| | | | more than once.)
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* Fixed crash because of uninitialized SG(sapi_headers).mimetypeDmitry Stogov2007-12-031-0/+2
|
* Slightly cleaner codeRasmus Lerdorf2007-05-251-2/+2
|
* Optimize sapi_get_request_time() slightly making it use the cached timeRasmus Lerdorf2007-05-251-3/+5
| | | | | | and also checking if there is a server_context before trying to call the request_time sapi hook.
* ZTS fixDmitry Stogov2007-04-251-5/+5
|
* fix ZTS buildAntony Dovgal2007-04-251-0/+3
|
* Fixed crashes because of SAPI handlers overrding from inside of dl()-ed ↵Dmitry Stogov2007-04-251-0/+15
| | | | extensions
* WIN64 supportDmitry Stogov2007-04-161-1/+1
|
* snprintf() -> slprintf()Ilia Alshanetsky2007-02-271-3/+3
|
* - Avoid sprintf, even when checked copy'n'paste or changes lead to errorsMarcus Boerger2007-02-241-8/+6
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* Fixed bug #39984 (redirect response code in header() could be ignored inIlia Alshanetsky2006-12-311-1/+3
| | | | | CGI sapi).
* MFHAntony Dovgal2006-12-211-5/+7
|
* MFH: fix possible invalid read (reproducible only on big-endian machines)Antony Dovgal2006-12-181-1/+1
|
* WhitespaceZeev Suraski2006-12-181-18/+18
|
* MFH: Fixed mess with CGI/CLI -d command line option (now it works with cgi; ↵Dmitry Stogov2006-09-191-0/+1
| | | | constants are working exactly like in php.ini; with FastCGI -d affects all requests).
* Add input_filter hook call in getenv()Rasmus Lerdorf2006-05-101-4/+9
|
* bump year and license versionfoobar2006-01-011-3/+3
|
* MFH: typofixfoobar2005-12-301-1/+1
|
* MFH: Prevent header injection by limiting each header to a single line.Ilia Alshanetsky2005-12-061-0/+13
|
* MFHfoobar2005-11-061-1/+1
|
* - sapi_header_op(SAPI_HEADER_(REPLACE|ADD), {NULL, 0, 0}) caused HTTP ↵Michael Wallner2005-11-021-0/+4
| | | | | | | response splitting - sapi_send_headers() already takes care of default_content_type (left over of fix for bug #29983)
* Fixed minor memory leak triggered by: -dzlib.output_compression=1 -mIlia Alshanetsky2005-11-011-1/+1
|
* MFH: Fixed bug #29983 (PHP does not explicitly set mime type & charset).Ilia Alshanetsky2005-10-191-0/+6
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* Fixed double-free in the digest authentication handling.Ilia Alshanetsky2005-07-121-1/+1
| | | | | # Found and Reported by Stefan Esser
* added a server variable PHP_AUTH_DIGEST to support HTTP Digest Authentication.Rui Hirokawa2005-04-041-0/+3
|
* Fix for bug #32263Rasmus Lerdorf2005-03-141-1/+9
| | | | | | | | | 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.
* FR 32275 - fifth parameter to preg_replace() to count number of replacesAndrey Hristov2005-03-121-2/+2
| | | | | | made. #it would be nice if someone of the doc team documents it. thanks!
* - Fixed bug #32109 ($_POST is not populated in multithreaded environment).Moriyoshi Koizumi2005-03-051-0/+1
|
* - Silly typo.Moriyoshi Koizumi2005-02-221-1/+1
|
* Nuke unused variables when PCRE is not compiled infoobar2005-02-211-4/+2
|
* Remove the useless TSRM_FETCH callsfoobar2005-02-211-6/+3
|
* - Fix bug #28568 (known_post_content_types is not thread safe).Moriyoshi Koizumi2005-02-211-13/+27
| | | | | # What is eventually necessiated is entire SAPI redesign, I think.
* Fixed: Correctly Initialize fieldsStefan Esser2004-11-281-0/+5
|
* - Apply realpath() cache patch. We don't use it if we're in safe_mode andAndi Gutmans2004-10-051-4/+1
| | | | | | - friends (which are quite slow anyway). - If it proves to be stable I'll remove the #ifdef's in a few weeks.
* If you send a post with a content-type header and then the next post without ↵Brian France2004-08-191-0/+1
| | | | 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.
* Reset global request_time in sapi_activate. Reset it in sapi_deactivateRasmus Lerdorf2004-08-111-0/+2
| | | | | | too, although I can't see why that would be necessary, but most of the other sapi globals are reset there as well.
* Add SAPI hook to get the request time if provided by the web server,Rasmus Lerdorf2004-08-101-1/+12
| | | | | | 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.
* Fixed bug #28692 (\0 in Authenticate header passed via safe_mode).Ilia Alshanetsky2004-06-081-1/+1
|
* Fixed bug #28670 (WWW-Authentication header mangling with PCRE in safe_modeIlia Alshanetsky2004-06-071-0/+5
| | | | | adds extra spaces).
* break is betterStefan Esser2004-05-251-1/+1
|
* Fixed bug #27687 (Bug Adding Default Charset to 'text/*' Content-Type HeaderMarcus Boerger2004-03-251-1/+2
|
* Fixed bug #27530 (broken http auth when safe_mode is on and PCRE isIlia Alshanetsky2004-03-091-7/+2
| | | | | disabled).