summaryrefslogtreecommitdiff
path: root/main/SAPI.c
Commit message (Collapse)AuthorAgeFilesLines
* - 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)
* Disable the hash_apply() protection on hashes that persist across requests - ↵Zeev Suraski2000-07-111-1/+1
| | | | | | | | it's unsafe because we may be aborted at any point @- Fixed a possible data corruption in case of a huge amount of aborted requests (Zeev)
* - fixed handling of fdf data (application/vnd.fdf)Uwe Steinmann2000-07-051-1/+6
|
* This is documented to not be case sensitive and it is not case sensitiveRasmus Lerdorf2000-07-011-1/+1
| | | | | | in PHP 3, so let's not make it case sensitive. @Make the special Header("http/...") response be case insensitive like 3.0 (Rasmus)
* - COMPILE_ERROR should only be used in ZendAndi Gutmans2000-06-231-2/+2
|
* Update the license with the new clause 6Zeev Suraski2000-05-181-2/+2
|
* no more broken scripts by erroneously terminating header()'s argumentHartmut Holzgraefe2000-04-281-0/+6
| | | | | with a CR-LF
* - Fix an invalid trick (it was valid when header() was usingZeev Suraski2000-04-281-2/+7
| | | | | | | zend_get_parameters(), but it became invalid when someone switched it to zend_get_parameters_ex(), and I decided to remove it anyway). - Remove a redundant function call
* - Add missing V_STAT()Andi Gutmans2000-04-201-1/+1
|
* - Create dtor functionAndi Gutmans2000-04-021-0/+3
|
* - Virtual cwd compiles now (need to uncomment #define in php.h for it toAndi Gutmans2000-04-021-0/+4
| | | | | | be enbaled right now). It seems to work very basic stuff
* @- Fix a problem when dealing with large POST blocks in CGI modeZeev Suraski2000-04-011-7/+7
|
* kill warningSascha Schumann2000-03-301-1/+1
|
* - Note quite sure why this wasn't done.Andi Gutmans2000-03-161-3/+3
|
* Fix traps due to sapi_global not being initialized when ZTS is setSam Ruby2000-03-051-1/+8
| | | | | Don't trap if php.ini can't be read
* @- The string None is now recognized as a keyword by the php.ini processor, andZeev Suraski2000-02-261-4/+3
| | | | | | | @ can be used to denote an empty string (Zeev) - Added None keyword support to the INI parser - Removed specialized "none" code
* (sapi_send_headers) fix leakThies C. Arntzen2000-02-261-2/+2
|
* - From CODING_STANDARDS:Zeev Suraski2000-02-261-22/+22
| | | | | | | | | | | [6] NEVER USE strncat(). If you're absolutely sure you know what you're doing, check its man page again, and only then, consider using it, and even then, try avoiding it. strncat() is your enemy! - Fix several SAPI services, get rid of the default_content_type (it's always composed of the mime type and charset now). - Win32 works again
* Build failure on Win32:Sam Ruby2000-02-251-1/+1
| | | | | error C2198: 'sapi_apply_default_charset' : too few actual parameters
* @- Implemented default_charset and default_mimetype config directives (Stig)Stig Bakken2000-02-251-24/+82
| | | | | | Implemented default_charset and default_mimetype configuration directives. Started implementing ticks in PHP.
* fix obvious crash.Thies C. Arntzen2000-02-251-0/+1
| | | | | | | | | | stig, in sgi-mode i still "only" get: (haven't touched my .ini file in ages - and don't plan to) X-Powered-By: PHP/4.0b5-dev Content-type: iso-8859-1 <<< where is text/html?
* started implementing directives for default mimetype/charsetStig Bakken2000-02-241-4/+45
|
* Get the license right... (this won't make it to RC1 of B4)Zeev Suraski2000-02-191-2/+2
|
* - Update .dsp'sZeev Suraski2000-02-181-0/+2
| | | | | | - Fix a possible crash bug in failed file open error message - Fix SAPI initialization issue that could lead to a crash
* Fix duplicate freeingZeev Suraski2000-02-171-0/+1
|
* Make POST handling the way it should be. RFC1867, and any future POST ↵Zeev Suraski2000-02-171-19/+41
| | | | | | | | | | handlers we might have in the future now obey to the variables_order directive, and there's a real way modular way to handle POST content. This is all untested, BEFORE_SAPI_POST_PATCH_17_FEB_2000 tagged before submission @- Made multipart/form-data content obey to the variables_order directive (Zeev)