Ilia Alshanetsky
6123f11021
MFH:
Added filter support for $_SERVER in cgi/apache2 sapis
Make sure PHP_SELF is filtered in Apache 1 sapi
20 years ago
Brian France
33879eceb3
Memory assigned to the request_rec should be allocated from apache pools
20 years ago
Dmitry Stogov
29e1530cd7
Added "PHPINIDir" Apache directive to apache and apache_hooks SAPIs
20 years ago
Dmitry Stogov
356facf4af
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.
20 years ago
Dmitry Stogov
29ed52ffa4
New memory manager
20 years ago
Rasmus Lerdorf
6fb0bf80ea
Switch to a signed int for now. Will look at moving to a long throughout
the code here.
20 years ago
Rasmus Lerdorf
4df7ab403c
Add input_filter hook call in getenv()
20 years ago
Ilia Alshanetsky
46ba651680
MFH:
Removed extra space in the Content-Type header for logos
Simplified stderr error reporting in apache sapi.
20 years ago
Antony Dovgal
8068342483
MFH: fix #36400 (Custom 5xx error does not return correct HTTP response error code)
20 years ago
Rasmus Lerdorf
4d64a617c3
MFH: I don't recall the reason for messing with r->allowed here, so let's
get rid of it (and see who screams). This should fix bug #32561
20 years ago
foobar
5bd93221a8
bump year and license version
20 years ago
Andrei Zmievski
e6ae0e99c3
MFH
20 years ago
Antony Dovgal
e5928942ac
MFH: initialize SG(request_info).auth_digest
21 years ago
Ilia Alshanetsky
24046edbbb
MFH: Fixed bug #34905 (Digest authentication does not work with Apache 1).
21 years ago
foobar
23e671a51e
- Bumber up year
21 years ago
Dmitry Stogov
cf6bb99723
Fixed bug #33723 (php_value overrides php_admin_value)
21 years ago
Brian France
3137e1e422
Added a SG(server_context) NULL check to php_apache_getenv.
21 years ago
Antony Dovgal
8be61d707f
fix #29683 (headers_list() returns empty array)
21 years ago
Rasmus Lerdorf
091bff3570
Fix for bug #33057 - Don't send extraneous entity-headers on a 304 as per
RFC 2616 section 10.3.5
21 years ago
Rui Hirokawa
8235a70ef9
added a server variable PHP_AUTH_DIGEST to support HTTP Digest Authentication.
21 years ago
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.
21 years ago
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.
22 years ago
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.
22 years ago
Stefan Esser
446f4d1bc2
Security Fix broken! Destroyed Basic auth. Blame: me
4.3.x not affected
22 years ago
Andi Gutmans
e5cfb1d05c
- Better stability during premature shutdown of request startup
22 years ago
Rasmus Lerdorf
44df89f00d
MFB - see bug #25753 for details
22 years ago
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
22 years ago
James Cox
f68c7ff249
updating license information in the headers.
23 years ago
Rasmus Lerdorf
a516171dec
MFB - fix a couple of missing closing folding tags
23 years ago
Edin Kadribasic
d758f2ea0b
Reverting my last patch because user reports it does not help
solve the problem. (bug #23504 )
23 years ago
Edin Kadribasic
97f3a35d73
Fixed MFB side effect
23 years ago
Edin Kadribasic
6f0e0a61b6
MFB
23 years ago
Sterling Hughes
3f700e58ab
update php module name to php5, not php4.
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.
23 years ago
George Schlossnagle
e49bc59a79
ws fix
23 years ago
George Schlossnagle
f5fb75f390
hopefully a fix for 19919
23 years ago
Sascha Schumann
67f18fcf6c
Detect whether BUFFs contain a fd element. IBM is hiding the actual
descriptor behind a void *, so we just disable this for IBM servers
23 years ago
Sascha Schumann
ba32a619ae
use SUCCESS/FAILURE instead of 0/-1
23 years ago
Ilia Alshanetsky
acc9c13c36
Build Fix.
23 years ago
Ilia Alshanetsky
13f8b211c4
Fixed compilation of Apache & Apache Hooks SAPIs.
23 years ago
Zeev Suraski
3a1a209baf
Updates reflecting infrastructure changes
23 years ago
Sascha Schumann
294e776d95
add sapi_get_target_uid/_gid for obtaining information about the
non-privileged user the web server is running as. this is useful
for creating shared memory segments which need to be accessed by
the child processes/threads.
23 years ago
Sebastian Bergmann
2c5d4b8c23
Bump year.
23 years ago
Andrei Zmievski
2feb1cf6d7
MFB.
23 years ago
Sascha Schumann
2b95b3c83b
add a "force HTTP/1.0 response" facility to the SAPI layer
this is necessary, when you want to take over control of a connection
and the web server is doing stupid things by default (like enabling
chunked transfer encoding for no reason).
24 years ago
Sascha Schumann
09f463ddae
Add sapi_get_fd() and implement it for the Apache/thttpd SAPIs.
24 years ago
Ilia Alshanetsky
b09c1afe0e
PHP flags specified in .htaccess can now be turned on by using '1' as well as
'On'.
24 years ago
Moriyoshi Koizumi
f2f19761a5
Forgot this one.
24 years ago
Hartmut Holzgraefe
c4cb92229c
this will be handled elsewhere
24 years ago
Ilia Alshanetsky
fd094b5b1e
Fixed bug #15038 , original patch by: phpman@toowards.com
24 years ago
Zeev Suraski
76312b4508
another startup initialization fix - only ISAPI and CGI SAPI's tested,
minor compile buglets might occur in other SAPIs, but should be trivial
to fix...
24 years ago