summaryrefslogtreecommitdiff
path: root/sapi/apache/mod_php5.c
Commit message (Collapse)AuthorAgeFilesLines
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFB: init server context before config variables are processedStanislav Malyshev2008-11-291-2/+2
|
* MFB: fix php_value application order for ApacheStanislav Malyshev2008-11-241-6/+6
|
* Added header_remove() (chsc at peytz dotdk, Arnaud)Arnaud Le Blanc2008-11-131-25/+38
| | | | | | | | | | | | | | | | | | | | | | | | | [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.
* fixed types (no more compiler warnings)Alexey Zakhlestin2008-06-281-2/+2
|
* Fixed bug #45144 (ap_child_terminate() isn't available on threaded builds)Scott MacVicar2008-06-011-0/+2
|
* exit_on_timeout patchRasmus Lerdorf2008-03-181-0/+9
| | | | | | | | | | | | | | | | | | | | | 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.
* RevertRasmus Lerdorf2008-03-171-6/+7
| | | | | | | | Never mind, it looks like ext/filter does an estrdup on everything it gets which doesn't seem very efficient to me as most things it gets passed will already be emalloc'ed. My custom version of the filter extension doesn't do this which led to the confusion.
* We need to pass PHP-managed pointers to filter here to avoid havingRasmus Lerdorf2008-03-171-7/+6
| | | | | | | | emalloc'ed data assigned to things like r->uri and having it get efree()'ed on request shutdown which then means that if the Apache logging module tries to log r->uri it would be reading from free'ed memory. So a simple estrdup before the filter call takes care of that.
* - Rewrite scanner to be based on re2c instead of flexMarcus Boerger2008-03-161-8/+0
| | | | | | | | | The full patch is available as: http://php.net/~helly/php-re2c-5.3-20080316.diff.txt This is against php-re2c repository version 98 An older patch against version 97 is available under: http://php.net/~helly/php-re2c-97-20080316.diff.txt
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* fix buildAntony Dovgal2007-08-061-1/+1
|
* - ws + sync apache2filter apache_config.c with the one from apache2handlerJani Taskinen2007-08-031-4/+4
|
* implement separate .htaccess stageStanislav Malyshev2007-08-031-1/+3
|
* Fixed bug #41628 (PHP settings leak between Virtual Hosts in Apache 1.3).Scott MacVicar2007-06-181-3/+9
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't ↵Dmitry Stogov2006-12-201-9/+3
| | | | make any significant slowdown, but incrise maintainability a lot. Note that the setting of memory_limit wasn't changes (neither in main/main.c nor in php.ini) and it still set to 16M.
* MFH:Ilia Alshanetsky2006-11-031-2/+5
| | | | | | Added filter support for $_SERVER in cgi/apache2 sapis Make sure PHP_SELF is filtered in Apache 1 sapi
* Memory assigned to the request_rec should be allocated from apache poolsBrian France2006-10-121-7/+2
| | | | | and should not be free'ed at the end of the handler phase
* Added "PHPINIDir" Apache directive to apache and apache_hooks SAPIsDmitry Stogov2006-08-031-0/+13
|
* Changed memory_get_usage() and memory_get_peak_usage(). Optional boolean ↵Dmitry Stogov2006-07-251-1/+1
| | | | argument allows get memory size allocated by emalloc() (by default) or real size of memory allocated from system.
* New memory managerDmitry Stogov2006-07-181-2/+1
|
* Switch to a signed int for now. Will look at moving to a long throughoutRasmus Lerdorf2006-05-131-1/+1
| | | | | the code here.
* Add input_filter hook call in getenv()Rasmus Lerdorf2006-05-101-1/+5
|
* MFH:Ilia Alshanetsky2006-04-021-2/+1
| | | | | | Removed extra space in the Content-Type header for logos Simplified stderr error reporting in apache sapi.
* MFH: fix #36400 (Custom 5xx error does not return correct HTTP response ↵Antony Dovgal2006-02-151-1/+20
| | | | error code)
* MFH: I don't recall the reason for messing with r->allowed here, so let'sRasmus Lerdorf2006-01-061-3/+0
| | | | | get rid of it (and see who screams). This should fix bug #32561
* bump year and license versionfoobar2006-01-011-3/+3
|
* MFHAndrei Zmievski2005-12-161-1/+1
|
* MFH: initialize SG(request_info).auth_digestAntony Dovgal2005-10-181-0/+1
|
* MFH: Fixed bug #34905 (Digest authentication does not work with Apache 1).Ilia Alshanetsky2005-10-181-6/+6
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* Fixed bug #33723 (php_value overrides php_admin_value)Dmitry Stogov2005-08-011-3/+3
|
* Added a SG(server_context) NULL check to php_apache_getenv.Brian France2005-06-281-0/+4
| | | | | | This can get called when "<key> = ${<key>}:/foo" is used in a .ini file, but <key> has not be set yet. You will end up with a value of ":/foo", but at least it will not crash now.
* fix #29683 (headers_list() returns empty array)Antony Dovgal2005-06-201-3/+1
|
* Fix for bug #33057 - Don't send extraneous entity-headers on a 304 as perRasmus Lerdorf2005-05-191-3/+9
| | | | | RFC 2616 section 10.3.5
* added a server variable PHP_AUTH_DIGEST to support HTTP Digest Authentication.Rui Hirokawa2005-04-041-16/+19
|
* Fix for bug #32263Rasmus Lerdorf2005-03-141-0/+1
| | | | | | | | | 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.
* Add SAPI hook to get the request time if provided by the web server,Rasmus Lerdorf2004-08-101-0/+9
| | | | | | 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.
* - Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()Andi Gutmans2004-07-191-1/+1
| | | | | | | | | | | | | | | used to return "" and not bool(false). It's not worth keeping it because STR_FREE() and zval_dtor() always have to check for it and it slows down the general case. In addition, it seems that empty_string has been abused quite a lot, and was used not only for setting zval's but generally in PHP code instead of "", which wasn't the intention. Last but not least, nuking empty_string should improve stability as I doubt every place correctly checked if they are not mistakenly erealloc()'ing it or calling efree() on it. NOTE: Some code is probably broken. Each extension maintainer should check and see that my changes are OK. Also, I haven't had time to touch PECL yet. Will try and do it tomorrow.
* Security Fix broken! Destroyed Basic auth. Blame: meStefan Esser2004-07-141-1/+1
| | | | | 4.3.x not affected
* - Better stability during premature shutdown of request startupAndi Gutmans2004-07-101-7/+8
|
* MFB - see bug #25753 for detailsRasmus Lerdorf2004-01-281-0/+3
|
* - A belated happy holidays and PHP 5Andi Gutmans2004-01-081-2/+2
|
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* MFB - fix a couple of missing closing folding tagsRasmus Lerdorf2003-06-031-0/+3
|
* Reverting my last patch because user reports it does not helpEdin Kadribasic2003-05-091-5/+5
| | | | | solve the problem. (bug #23504)
* Fixed MFB side effectEdin Kadribasic2003-05-081-1/+1
|
* MFBEdin Kadribasic2003-05-081-5/+5
|
* update php module name to php5, not php4.Sterling Hughes2003-03-291-0/+966
apache, apache2* and cli/cgi work. sapi module maintainers should fix up their sapis, as I don't run any servers with php outside of apache.