1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 23:48:14 +02:00
Commit Graph

407 Commits

Author SHA1 Message Date
Ilia Alshanetsky 3642ebdcdd Added filter support for $_SERVER in cgi/apache2 sapis
Make sure PHP_SELF if filtered in Apache 1 sapi
2006-10-23 19:17:51 +00:00
Brian France 8767cd2df4 MFB:
Memory assigned to the request_rec should be allocated from apache pools
  and should not be free'ed at the end of the handler phase
2006-10-12 20:13:07 +00:00
Derick Rethans ee67c9ae3f - Updated the Apache 1.3 sapi as add_assoc_string's signature has been changed. 2006-09-27 18:18:59 +00:00
Nuno Lopes 2320354d66 MFB: more int->zend_bool conversions 2006-09-06 11:55:12 +00:00
Dmitry Stogov c6fdecc906 Added "PHPINIDir" Apache directive to apache and apache_hooks SAPIs 2006-08-03 09:57:05 +00:00
Michael Wallner 29438e890a - fix TS issue found by Jani 2006-07-25 20:22:28 +00:00
Dmitry Stogov 61d39cf1c1 Changed memory_get_usage() and memory_get_peak_usage(). Optional boolean argument allows get memory size allocated by emalloc() (by default) or real size of memory allocated from system. 2006-07-25 13:41:08 +00:00
Dmitry Stogov 6687f0377b New memory manager 2006-07-18 09:08:06 +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 9b985490f6 We might want to consider moving this to a long throughout the sapi code,
but for now switch to a signed int.
2006-05-13 21:48:14 +00:00
Rasmus Lerdorf 839c3e24a3 MFB input filter hook for getenv() 2006-05-10 21:25:01 +00:00
Edin Kadribasic 80ac536d13 MFB: Correctly import external data (#33292) 2006-04-26 09:32:11 +00:00
Ilia Alshanetsky ae08857016 Removed extra space in the Content-Type header for logos
Simplified stderr error reporting in apache sapi.
2006-04-02 17:58:07 +00:00
Ilia Alshanetsky 87c4a01b87 Nuke safe_mode from sapi/*
# only main/ remains at this point, this is the next step
2006-03-07 14:43:16 +00:00
Pierre Joye 303bfea78f - remove register_globals support (aka "Kill the f***ing thing" :) 2006-03-07 00:20:54 +00:00
Dmitry Stogov 6f7619cf6f Unicode support: zstr union 2006-03-01 16:27:47 +00:00
Antony Dovgal eb49217161 fix #36400 (Custom 5xx error does not return correct HTTP response error code) 2006-02-15 11:07:33 +00:00
Rasmus Lerdorf 4930c2fa31 Let's not mess with r->allowed here - this should fix bug #32561 2006-01-06 17:54:35 +00:00
foobar 251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Andrei Zmievski 14df4af00e I see no reason no reason to not support chunked encoding requests.
Let's ask Apache to decode these requests for us.
2005-12-15 00:27:25 +00:00
foobar a208d9a966 - Nuke php3 legacy 2005-12-06 02:28:26 +00:00
foobar 5ee664f80e nuke php3 legacy 2005-12-06 01:13:59 +00:00
foobar 89199c43b2 - Nuke non-working part 2005-12-04 23:31:33 +00:00
Antony Dovgal 65e6b4fafa initialize SG(request_info).auth_digest to NULL and prevent segfaults 2005-10-18 23:51:36 +00:00
Ilia Alshanetsky cddb5c624a Fixed bug #34905 (Digest authentication does not work with Apache 1). 2005-10-18 23:14:47 +00:00
foobar 4b8025987f - Unused 2005-08-12 00:06:15 +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
Dmitry Stogov cf6bb99723 Fixed bug #33723 (php_value overrides php_admin_value) 2005-08-01 07:46:54 +00:00
Brian France 3137e1e422 Added a SG(server_context) NULL check to php_apache_getenv.
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.
2005-06-28 16:34:18 +00:00
Antony Dovgal 8be61d707f fix #29683 (headers_list() returns empty array) 2005-06-20 12:46:34 +00:00
foobar a20383ba06 - Unify the "configure --help" texts 2005-05-29 23:17:16 +00:00
Rasmus Lerdorf 091bff3570 Fix for bug #33057 - Don't send extraneous entity-headers on a 304 as per
RFC 2616 section 10.3.5
2005-05-19 15:57:45 +00:00
foobar 0e57528666 No c++ comments in C code 2005-04-19 11:41:04 +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
foobar 4c883c79bb Do not set apache stuff if not building apache 2005-03-04 15:14:47 +00:00
Derick Rethans 7b27263e16 - There is no --with-apache2, only apxs2 2005-01-26 18:03:04 +00:00
Rasmus Lerdorf 3d297bf881 Fix proto 2004-12-04 13:47:13 +00:00
Rasmus Lerdorf 224d2479b3 Add apache_reset_timeout() function for Apache1. This is needed because
Apache1 only resets the write timer, which defaults to 300 seconds, on
a successful write.  That is, if the client has gone away and Apache
attempts a write which fails it will set the conn->aborted flag but not
reset the timeout.  Assuming the PHP script is running in ignore_user_abort
mode we ignore the aborted flag, but we'll still get blown out of the water
300 seconds after the failed write unless we periodically reset the timer.
With set_time_limit(0), ignore_user_abort(true) and periodic
apache_reset_timeout() calls we can theoretically run forever which is
why I disabled this call in safe mode.
2004-12-04 07:16:44 +00:00
Antony Dovgal ad503c814b MFB: typo in config.m4 (potential configuration problem with Stronghold) 2004-08-18 07:22:54 +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
Andi Gutmans 56f8195fe5 - Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
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.
2004-07-19 07:19:50 +00:00
Stefan Esser 446f4d1bc2 Security Fix broken! Destroyed Basic auth. Blame: me
4.3.x not affected
2004-07-14 09:43:26 +00:00
Andi Gutmans e5cfb1d05c - Better stability during premature shutdown of request startup 2004-07-10 07:46:17 +00:00
Rasmus Lerdorf 44df89f00d MFB - see bug #25753 for details 2004-01-28 17:49:49 +00:00
foobar f4983c0d3f - Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5 2004-01-17 13:00:38 +00:00
foobar ccfc46b0aa - Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Andi Gutmans dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00