summaryrefslogtreecommitdiff
path: root/main/SAPI.c
Commit message (Collapse)AuthorAgeFilesLines
* fix for bug #14776Stefan Esser2002-01-141-0/+1
|
* fixed: fix for my broken patch.Stefan Esser2001-12-161-6/+5
|
* whitespace.Stefan Esser2001-12-161-2/+6
|
* fixed: WWW-Authenticate -> header_line got only freed when safe_mode was activStefan Esser2001-12-161-3/+2
| | | | | fixed: WWW-Authenticate -> content of header_line was changed after it was freed
* fixed: bufferoverflow in sapi_add_header_ex triggerable by ↵Stefan Esser2001-12-161-0/+1
| | | | header("WWW-Authenticate: Basic foobar");
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* Added missing CVS Id tag.foobar2001-11-241-0/+2
|
* Let's suppress this warning if always_populate is enabledRasmus Lerdorf2001-10-241-1/+2
|
* Ok, now actually make it work - maybe...Rasmus Lerdorf2001-10-231-1/+14
|
* @- $HTTP_RAW_POST_DATA was not populated on a missing content-type even whenRasmus Lerdorf2001-10-231-1/+1
| | | | | | | @ always_populate_raw_post_data was on - fixed. (Rasmus) $HTTP_RAW_POST_DATA was not populated on a missing content-type even when always_populate_raw_post_data was on - fixed. (Rasmus)
* Check if PCRE support is compiled in and only use the pcre functions ifRasmus Lerdorf2001-10-211-3/+21
| | | | | it is. Otherwise just set the realm to the safe mode user id if it isn't.
* # Butt-ugly looking code here, but I need regular expressions to do this.Rasmus Lerdorf2001-10-201-0/+57
| | | | | | | Re-instated safe-mode realm mangling as it was in php 2 and 3 albeit in a somewhat more robust way. @ Re-instated safe-mode realm mangling (Rasmus)
* - Don't wrap lines... this is annoying while coding.Derick Rethans2001-09-091-2/+2
|
* Cleanup.foobar2001-09-071-4/+0
|
* First step for chunkifying the HTTP uploads.foobar2001-09-031-3/+8
|
* fix SAPI_POST_* exportsDaniel Beulshausen2001-08-151-1/+1
|
* more tsrm cleanupSascha Schumann2001-08-051-2/+2
|
* More TSRMLS_FETCH work. Got it under 400 now.Zeev Suraski2001-07-311-13/+5
|
* More TSRMLS_FETCH workZeev Suraski2001-07-311-4/+4
|
* Redesigned thread safety mechanism - nua nuaZeev Suraski2001-07-281-33/+32
|
* - Get rid of ELS_*(), and use TSRMLS_*() instead.Zeev Suraski2001-07-271-3/+3
| | | | | | | - Move to the new ts_allocate_id() API This patch is *bound* to break some files, as I must have had typos somewhere. If you use any uncommon extension, please try to build it...
* Get rid of the redundant global startup codeZeev Suraski2001-07-241-3/+0
|
* Add always_populate_raw_post_data ini directive and default it to 0 toRasmus Lerdorf2001-07-171-0/+4
| | | | | | | | | maintain current behaviour. If this is turned on then $HTTP_RAW_POST_DATA is always populated with a copy of the raw post data. @ - Add config option (always_populate_raw_post_data) which when enabled @ will always populate $HTTP_RAW_POST_DATA regardless of the post mime @ type (Rasmus)
* Fix folding and clean up some extensionsRasmus Lerdorf2001-06-061-1/+2
|
* vim-6 does folding - clean up a bunch of missing folding tags plusRasmus Lerdorf2001-06-051-0/+1
| | | | | some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
* - Change macros from V_ to VCWD_ because of AIX name clashAndi Gutmans2001-04-301-1/+1
|
* get rid of MS's _popen/_pcloseDaniel Beulshausen2001-04-271-0/+9
|
* Fix possible crash if content-type is not set.foobar2001-03-181-1/+1
|
* These functions are not necessary - that's what sapi_register_post_entry()Zeev Suraski2001-03-181-43/+0
| | | | | | | | and sapi_unregister_post_entry() are for... Also, please maintain K&R code layout, it's very messy to have different styles intermixed in the same codebase, and especially in the same files!
* - Fix copyright notices with 2001Andi Gutmans2001-02-261-1/+1
|
* Many patches. I hope I remember them all:Zeev Suraski2001-01-021-1/+1
| | | | | | | | | - Make sapi_module available to external modules (PHPAPI) - Make the php.ini path reported in phpinfo() always point to real full path of the php.ini file - Optimized the ISAPI module not to read unnecessary server variables and read necessary variables at most once.
* Added the capability to specify a different HTTP Redirection response codeJason Greene2000-11-291-1/+5
| | | | | | | | before the Location Header. Ex. header("HTTP/1.1 307 Temporary Redirect"); header("Location: URL");
* - Import Jade Nicoletti's transparent gzip encoding support as an outputZeev Suraski2000-11-131-2/+3
| | | | | | | handler. Works quite nicely! - Fix buglets in output buffering - Add output_handler INI directive
* Add sapi_add_header_ex, which lets you specify whether you wantSascha Schumann2000-10-261-1/+2
| | | | | to add or replace a header.
* Changing datatype to remove compiler warningFrank M. Kromann2000-10-201-1/+1
|
* post handler registration done rightHartmut Holzgraefe2000-10-131-0/+44
| | | | | (never use emalloc in an extension MINIT function)
* @ - POST handler for Adobe FDF format (Hartmut)Hartmut Holzgraefe2000-10-111-18/+0
| | | | | | | the FDF handler is now working and totaly living in the fdf extension, no more special code in main is needed
* More security-related (control) patches:Zeev Suraski2000-09-091-6/+19
| | | | | | | - Avoid displaying errors during startup, unless display_startup_errors is enabled. - Implemented post_size_max limit. Defaults to 8MB. - Implemented file_uploads on/off directive (defaults to on).
* Security related updates:Zeev Suraski2000-09-091-2/+1
| | | | | | | | | - Introduce php_open_temporary_file(), in place of tempnam(). Still needs testing under UNIX (mkstemp()), works reliably under Windows now. - Reimplement the mechanism for unlinking uploaded files at the end of the request (was it ever tested?). Files moved with move_uploaded_file() will not be unlink()'d again, to avoid (albeit very unlikely) race conditions.
* Implement move_uploaded_file() (untested)Zeev Suraski2000-09-081-1/+1
|
* - Implemented is_upload_file()Zeev Suraski2000-09-081-0/+5
|
* Restore the headers_only test to the centralized SAPI startup. If ↵Zeev Suraski2000-09-081-5/+2
| | | | | | | necessary, it can be overriden in the activate() callback.
* - This shouldn't have been commited.Andi Gutmans2000-09-041-2/+2
| | | | | | There are quite a few modules which are using VIRTUAL_DIR. I don't think this should be happening.
* - Found my bug and managed to move the V_* macros to TSRMAndi Gutmans2000-09-041-2/+2
|
* Fix strlcpy use at this place.Sascha Schumann2000-08-271-2/+2
|
* newtype has a length of newlen+1, 'len' refers to the length of *mimetypeSascha Schumann2000-08-271-2/+2
| | | | | here.
* Use size_t as parameter type in the getenv member of struct sapi_moduleSascha Schumann2000-08-201-1/+1
|
* Avoid an endless loop situation in case of an error situation while sending ↵Zeev Suraski2000-08-191-2/+6
| | | | headers
* Leave this initialization inRasmus Lerdorf2000-08-021-1/+1
|
* Heads up! I have moved the headers_only and response_code checks out ofRasmus Lerdorf2000-08-021-0/+8
| | | | | | | | | | | | | | | SAPI and down into the individual SAPI modules. I have made the appropriate changes in all the SAPI modules, but please verify these. The reason for this change is that Apache sometimes will feed PHP a request_method of GET but have r->header_only set to true. This happens in an ErrorDocument redirect. In this same scenario we want to preserve the status code as well instead of just overwriting it with a 200 and losing this information. For now the other sapi modules act exactly as before since they probably do not make this distinction, and they may not even have a valid response code this early in the request. @ Fix HEAD request bug on an Apache ErrorDocument redirect and preserve @ the status code across the redirect as well. (Rasmus)