Rasmus Lerdorf
45e327a672
Add new empty child terminate sapi hook to the rest of the sapis
18 years ago
Ilia Alshanetsky
1227a4c57a
Fixed bug #42779 (Incorrect forcing from HTTP/1.0 request to HTTP/1.1
18 years ago
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
18 years ago
Antony Dovgal
37e0738f3a
MFH
19 years ago
Antony Dovgal
6d76fc2834
MFH: fix #39330 (apache2handler does not call shutdown actions before apache child die)
19 years ago
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
19 years ago
Dmitry Stogov
53b088e60c
Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't 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.
19 years ago
Ilia Alshanetsky
1c4806c515
Fixed bug #39201 (Possible crash in Apache 2 with 413 ErrorHandler).
19 years ago
Ilia Alshanetsky
cbaaf1bc07
Fixed bug #39797 (virtual() does not reset changed INI settings).
19 years ago
Ilia Alshanetsky
b3006ed2a5
Fixed bug #38456 (Apache2 segfaults when virtual() is called in .php
ErrorDocument).
19 years ago
Ilia Alshanetsky
e5f9b479af
Fixed bug #38602 (header( "HTTP/1.0 ..." ) does not change proto version).
19 years ago
Ilia Alshanetsky
6123f11021
MFH:
Added filter support for $_SERVER in cgi/apache2 sapis
Make sure PHP_SELF is filtered in Apache 1 sapi
19 years ago
Antony Dovgal
1ec10ac8c7
typos in comments and other minor improvements
20 years ago
Stanislav Malyshev
0617904d0a
fix bug with variables clobbered by longjmp
20 years ago
Antony Dovgal
5e0f6ea7db
nuke unused variable
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
Michael Wallner
d724f9cfb1
MFH: call ap_set_content_type() only once, else each time we call it,
configured output filters for that content type will be added
20 years ago
Michael Wallner
23b8ce3876
- fix php_apache_sapi_header_handler() modifying sapi_header
# already taken care of in apcache1 sapi
20 years ago
foobar
5bd93221a8
bump year and license version
20 years ago
Ilia Alshanetsky
00b9392bf5
Fixed bug #35571 (Fixed crash in Apache 2 SAPI when more then one php
script is loaded via SSI include).
20 years ago
Ilia Alshanetsky
110344d65c
Fixed bug #35278 (Multiple virtual() calls crash Apache 2 php module).
20 years ago
Ilia Alshanetsky
8f514cd18c
MFH: Resolve Apache 2 regression with sub-request handling on non-linux
systems.
20 years ago
Ilia Alshanetsky
51d8950b53
Additional tweaks to the patch for bug #34249 .
20 years ago
Antony Dovgal
f4371b9cc6
fix bug #34581 (crash with mod_rewrite)
21 years ago
Ilia Alshanetsky
f2ed06347b
MFH: Fixed possible INI setting leak via virtual() in Apache 2 sapi.
21 years ago
foobar
8c4d1f6657
MFH
21 years ago
Ilia Alshanetsky
e134382a71
MFH: Fixed bug #33987 (php script as ErrorDocument causes crash in Apache 2).
21 years ago
foobar
23e671a51e
- Bumber up year
21 years ago
Rasmus Lerdorf
884c97d4d7
MFB fix for bug #33690
21 years ago
Antony Dovgal
8be61d707f
fix #29683 (headers_list() returns empty array)
21 years ago
foobar
7af1dfa8cb
- Fixed bug #32587 (Apache2: errors sent to error_log do not include timestamps)
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
Joe Orton
bef3202d9e
- Fixed bug #31717 : Reject PATH_INFO if "AcceptPathInfo off" is used.
21 years ago
Joe Orton
8288c451c0
Fixed bug #31519 : Set r->status_line to SAPI-provided status-line.
21 years ago
foobar
ce742b08b0
- Fix typo (avaliable -> available). (bug #28725 )
21 years ago
Stanislav Malyshev
9baa92c596
fix startup - if startup did not succeed, do not continue with execution
21 years ago
Stanislav Malyshev
f9c2324cd0
do not zero out peak - MM shutdown would do that
21 years ago
Joe Orton
1f364c1ee1
- always convert apr_time_t to time_t using apr_time_sec() to be future-proof.
- print apr_time_t values using APR_TIME_T and apr_snprintf.
- remove redundant add_property_long calls.
21 years ago
Joe Orton
516a19f1ec
Fix the get_request_time implementation for the 2.0 SAPIs to return
seconds not microseconds and to use TSRM stuff correctly.
21 years ago
Joe Orton
1ef6c7add1
Fix case where php_handle_aborted_connection was called outside a
try/end_try block (#25570 ).
21 years ago
Marcus Boerger
364c2fe5a2
TSRM fix
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
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
Moriyoshi Koizumi
2af6d0e1ab
- request_dtor() should be called if a fatal error occurs during activation
phase.
22 years ago
Edin Kadribasic
42f7b8026c
MFB: Memory leak fix (patch by Joe Orton)
Fixes #28113 . Adapted to php5 by Magnus Määttä.
22 years ago
Ilia Alshanetsky
cfbf5b24b7
Fixed bug #28818 (Apache 2 sapis do not export st_dev).
22 years ago
Ilia Alshanetsky
39baa271b6
Fixed bug #27580 (pre-initialization errors in ap2 handler are not being
written to vhost error log).
Stop using depreciated and ignored APLOG_NOERRNO directive.
Make file not found & directory as script invocation error messages more
descriptive.
22 years ago
Ilia Alshanetsky
c828007fdf
Fixed bug #27424 (headers missing on flush() in apache 2 SAPIs).
22 years ago
Rui Hirokawa
815fe886b8
fixed a compilation error.
22 years ago