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
Sascha Schumann
6f4333c7ae
scrap STANDARD_SAPI_MODULE_PROPERTIES; it is causing more harm than good
23 years ago
Sascha Schumann
4668b7130b
whitespace
23 years ago
Derick Rethans
b9e54cb693
- Fixed bug #21169 : Compile Failure, and lots of warnings on UnixWare
23 years ago
Sebastian Bergmann
2c5d4b8c23
Bump year.
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
foobar
dd53efc196
- Made the STANDARD_SAPI_MODULE_PROPERTIES be what it says it is.
24 years ago
Sascha Schumann
09f463ddae
Add sapi_get_fd() and implement it for the Apache/thttpd SAPIs.
24 years ago
Sebastian Bergmann
51e4dbaba0
Fix ZTS build.
24 years ago
George Schlossnagle
99c7ddc3a8
added support functions for the apache_hooks SAPI
24 years ago
Marcus Boerger
cecb9dfc79
Implemented -n switch to skip parsing ini at startup as suggested by Wez.
#The switch 'n' was planned to be used for beautifying....delete n to make
#clear these functions do not have a switch yet.
24 years ago
Hartmut Holzgraefe
be5e379ec6
HTTP_RAW_POST_DATA BC fixes
# hopefully all done, commiting anyway to continue work on my home box
php://input stream fixes (POST data handerl mangles data, CLI crashbug)
24 years ago
Rui Hirokawa
7527bf0c58
made sapi_register_treat_data() to support multibyte input encoding translation without MBSTR_ENC_TRANS and changed php_treat_data to php_default_treat_data.
24 years ago
Rui Hirokawa
fbbeaec630
fixed: output encoding translation by mb_output_handler() in ext/mbstring was not usable when Content-Type is set by header().
24 years ago
Sascha Schumann
9c876ea01a
Add sapi_header_op interface which supersedes the sapi_add_header and _ex
calls.
Revert the change to the sapi_add_header_ex interface.
Fix various bugs:
1. header("HTTP/1.0 306 foo");
header("Location: absolute-uri");
did not work in combination with several SAPI modules, because
http_status_line was never properly reset. And thus, all SAPI
modules which looked at http_status_line ignored the changed
http_response_code.
2. The CGI SAPI did not send out the HTTP status line at all, if
http_status_line had not been set explicitly by calling
header("HTTP/1.0 200 foo");
24 years ago
Derick Rethans
6869cb3f5a
- Added a new parameter to the header() function which overrides the HTTP
response code.
@- Added a new parameter to the header() function which overrides the HTTP
@ response code. (Derick)
24 years ago
Zeev Suraski
5af649efbd
Revert to the old php_ini.c, and reimplement the binary-path searching.
Should now also work under UNIX (CLI/CGI)
24 years ago
Sebastian Bergmann
90613d2282
Maintain headers.
24 years ago
Edin Kadribasic
1788410a56
Added argc and argv in request_info needed for the new cli sapi.
Modified registering $argc and $argv to support cli sapi.
24 years ago
Sebastian Bergmann
38933514e1
Update headers.
25 years ago
foobar
8d8e26577d
Cleanup.
25 years ago
Daniel Beulshausen
0dab84d065
fix SAPI_POST_* exports
25 years ago
Zeev Suraski
2cf25894a8
improve typedef definition
25 years ago
Sascha Schumann
8aef193056
more tsrm cleanup
25 years ago
Zeev Suraski
bc42c37513
More TSRMLS_FETCH work. Got it under 400 now.
25 years ago
Zeev Suraski
d76cf1da18
More TSRMLS_FETCH work
25 years ago
Zeev Suraski
d87cc976e1
Redesigned thread safety mechanism - nua nua
25 years ago
Zeev Suraski
fe6f8712a4
- Get rid of ELS_*(), and use TSRMLS_*() instead.
- 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...
25 years ago
Stig Bakken
0b2641efa6
@Added -C command-line option to avoid chdir to the script's directory (Stig)
25 years ago
Zeev Suraski
d3572f74bb
These functions are not necessary - that's what sapi_register_post_entry()
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!
25 years ago
Andi Gutmans
eb6ba01d1c
- Fix copyright notices with 2001
25 years ago
Zeev Suraski
60776dbeeb
Fix Apache module and remove excess elements from the SAPI structure
26 years ago
Zeev Suraski
bd0ac7fe14
Many patches. I hope I remember them all:
- 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.
26 years ago
Sascha Schumann
dcd971e6bf
A field of mines
Submitted by: jon@csh.rit.edu
26 years ago
Sascha Schumann
3b195720e0
Add a note about what a missing const specifier does mean in the context
of the request_info structure.
26 years ago
Zeev Suraski
0f7f5c2c0e
- Import Jade Nicoletti's transparent gzip encoding support as an output
handler. Works quite nicely!
- Fix buglets in output buffering
- Add output_handler INI directive
26 years ago
Daniel Beulshausen
87d8e44c26
win32 sapi symbol export fixes
26 years ago
Zeev Suraski
50e0d9d34b
cookie_data may also be modified...
26 years ago
Sascha Schumann
43ff395b65
Const'ify part of sapi_request_info.
query_string, post_data, path_translated, request_uri, auth_user,
auth_password and argv0 are modified, so they cannot become const.
26 years ago
Sascha Schumann
2b060b3bf3
Add sapi_add_header_ex, which lets you specify whether you want
to add or replace a header.
26 years ago
Rasmus Lerdorf
bccdaff6d1
Move server_filter to an extension-specific global
26 years ago
Rasmus Lerdorf
32b10882e5
Need a global server filter for the Apache 2.0 module
26 years ago
Hartmut Holzgraefe
545ae277bc
post handler registration done right
(never use emalloc in an extension MINIT function)
26 years ago
Hartmut Holzgraefe
22e48a814a
@ - POST handler for Adobe FDF format (Hartmut)
the FDF handler is now working and totaly living
in the fdf extension, no more special code in
main is needed
26 years ago
Zeev Suraski
b7ecaacd07
More security-related (control) patches:
- 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).
26 years ago
Zeev Suraski
75086e3088
- Implemented is_upload_file()
26 years ago
Zeev Suraski
91c808ecc4
Restore the headers_only test to the centralized SAPI startup. If necessary, it can
be overriden in the activate() callback.
26 years ago
Sascha Schumann
320105bcd8
Use size_t as parameter type in the getenv member of struct sapi_module
26 years ago
Sascha Schumann
16017f6d78
Change header protection macros to conform to standard.
Draft 3 of IEEE 1003.1 200x, "2.2 The Compilation Environment"
All identifiers that begin with an underscore and either an uppercase
letter or another underscore are always reserved for any use by the
implementation.
26 years ago
Andrei Zmievski
4010b422dd
Separate plain name returned by php_sapi_module() and pretty name
used for output.
26 years ago