Dmitry Stogov
34c493ea07
Unicode support for dl() patch.
20 years ago
Dmitry Stogov
09ca61c125
Made server wide switch for unicode on/off (according to PDM).
20 years ago
foobar
251c5173fd
bump year and license version
20 years ago
Andrei Zmievski
264cec8be6
Unicode support.
21 years ago
foobar
23e671a51e
- Bumber up year
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
Moriyoshi Koizumi
0d7845384f
- Fix bug #28568 (known_post_content_types is not thread safe).
# What is eventually necessiated is entire SAPI redesign, I think.
21 years ago
Frank M. Kromann
e398e6b7d6
Fix win32 compilation. Missing uid_t and gid_t definitions.
22 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
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
22 years ago
Derick Rethans
630e1692d6
- Fixed standard wrapper for input filter.
23 years ago
Derick Rethans
750b0338bf
- Fix sapi_input_filter patch. Returning 1 from the filter handler should
make PHP register the variable, returning 0 shouldn't. The new length of
the variables being filtered is now returned in the new_val_len argument
of the function.
23 years ago
Ard Biesheuvel
3d6426ee14
Fix use of EXTERN_C macros
23 years ago
Wez Furlong
ef498a27b8
linkage for C++
23 years ago
James Cox
f68c7ff249
updating license information in the headers.
23 years ago
Marcus Boerger
3e621fac94
make phpinfo() depend on executed sapi
23 years ago
Marcus Boerger
63739c7db8
give sapi modules the possibility to overwrite default ini settings
23 years ago
Rasmus Lerdorf
d08a0e99c8
An input filter might not simply strip stuff, it might also turn things
into entities or use some other mechanism which causes the filtered data
to be longer than the original data. Ergo, pass in the address of the
buffer instead so the filter is free to reallocate it.
23 years ago
Rasmus Lerdorf
7429c2dc3f
Input Filter support. See README.input_filter for details.
@- Input Filter support added. See README.input_filter. (Rasmus)
23 years ago
foobar
8e3f23e3c0
ws fixes + missing $Id$ tags, headers added
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
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
24 years ago
Sebastian Bergmann
2c5d4b8c23
Bump year.
24 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.
25 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