Dmitry Stogov
6c810b0d4c
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
19 years ago
Marcus Boerger
50ea26760d
- Avoid sprintf, even when checked copy'n'paste or changes lead to errors
19 years ago
Stanislav Malyshev
e894206874
use snprintf
19 years ago
Ilia Alshanetsky
d4fbb3ca53
Fixed bug #40127 (apache2handler doesnt compile on Netware).
19 years ago
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
19 years ago
Ilia Alshanetsky
d3aa695263
Fixed bug #39787 (PHP doesn't work with Apache 2.3).
19 years ago
Ilia Alshanetsky
fb91408a17
Added param checks for ap2 fetch respose/request header functions.
20 years ago
Ilia Alshanetsky
a5e15f2e1c
Fixed possible crash in apache_getenv()/apache_setenv() on invalid
parameters.
20 years ago
foobar
6d8c69e3cb
MFH: fixed apache_setenv(): at least 2 parameters are required
20 years ago
Ilia Alshanetsky
488500acfb
Added safety checks
20 years ago
foobar
5bd93221a8
bump year and license version
20 years ago
foobar
3e669bc950
MFH: nuke php3 legacy
20 years ago
foobar
23e671a51e
- Bumber up year
21 years ago
Joe Orton
62121a1840
Fixed regression #31645 - only flush before running the subrequest.
21 years ago
Joe Orton
cb6605c1a5
Fixed bug #30446 - virtual() includes files out of sequence,
work around 2.0 subrequest/internal redirect issue.
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.
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
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
22 years ago
Ilia Alshanetsky
d2564b401e
Compiler warning fix (patch by Joe Orton).
22 years ago
foobar
d3bde360a7
Use the proper way to get the max requests per child.
23 years ago
James Cox
f68c7ff249
updating license information in the headers.
23 years ago
Derick Rethans
7bd188fcf0
- Fix typo
23 years ago
Ilia Alshanetsky
2e0651f378
Added missing initialization, which causes AP2 to crash on startup in ZTS.
23 years ago
Edin Kadribasic
5d381f8f80
MFB and more. Fixed various win32 compilation issues. Also the sapi
is now built as php4apach2.dll since the filter is being obsoleted.
23 years ago
Sebastian Bergmann
5ca078779a
Eliminate some TSRMLS_FETCH() calls. Tested with Win32 build of SAPI/CGI and SAPI/CLI on Win32.
23 years ago
foobar
96c02a1251
- This is not supposed to be 'pretty' name. (ref. bug #22853 )
23 years ago
Ilia Alshanetsky
8c3e16bf09
OnUpdateInt -> OnUpdateLong.
23 years ago
Ilia Alshanetsky
97418f59bd
CS Fixes.
Fixed a bug with 404 handling.
Added more detailed Apache info for phpinfo().
Added the support for last_modified.
23 years ago
Justin Erenkrantz
9729930343
Clean up apache2handler SAPI.
Key improvements:
- Be streamy
- Re-enable virtual() support
- Set content_type correctly
- Remove unnecessary code and reintroduce some missing code
- Change signature from PhP to PHP
23 years ago
Ian Holsman
ec68ed4aee
initial checkin of the apache2 SAPI using a handler instead of filters.
TBD: src highlighting
better post handling
23 years ago
Ilia Alshanetsky
d92a1f4dc1
Fixed win32 build (bug #21506 ).
Fixed a bug that would cause garbage data to appear at the end of the
loaded apache modules list in phpinfo().
23 years ago
Ilia Alshanetsky
c794f2c710
Removed pointless memory allocation checks.
23 years ago
Moriyoshi Koizumi
dd9b7f25cf
This patch is likely to fix win32 build
23 years ago
Sebastian Bergmann
2c5d4b8c23
Bump year.
23 years ago
Ilia Alshanetsky
648dd88b42
Added apache_get_version() & apache_get_modules() to Apache 1.X & Apache
Hooks sapis.
Made the module listing in Apache 2 not show the '.c' portion, to be
consistent with Apache 1.X.
23 years ago
Ilia Alshanetsky
572394db74
Added MINFO() to Apache 2, which displays the Apache version & all of the
loaded Apache modules.
Added apache_get_version() & apache_get_modules() functions.
23 years ago
James Cox
a63d607f08
adding id tags
24 years ago
Sascha Schumann
68bb574637
add missing }}} closure
24 years ago
Ilia Alshanetsky
01830c0d27
Added missing TSRMLS_DC to php_apache_lookup_uri()
24 years ago
Ilia Alshanetsky
ca0aced7c9
Added apache_response_headers(), apache_note(), apache_getenv() and
apache_setenv() functions.
The getallheaders() is renamed to apache_request_headers() and an
getallheaders() is aliased to it.
Added a better error reporting mechanism to apache_lookup_uri() and virtual().
24 years ago
Zeev Suraski
b23adfb43b
Fix double initialization
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
Cliff Woolley
46eeabccf7
That macro is and always was hopelessly broken, which is why it's
now deprecated.
24 years ago
Cliff Woolley
57a4a7ed39
apache 2.0's apache_lookup_uri() was returning an array rather than an
object, which contradicted both the documentation and the behavior of the
same function under apache 1.3.
PR: 14999
24 years ago
Sebastian Bergmann
5192f6432c
Patch by Justin Erenkrantz <jerenkrantz@apache.org>. This should be MFHed.
24 years ago
Sterling Hughes
53fdf83f09
eekk -- and ssb thought my macro's were icky :)
24 years ago
Sterling Hughes
11acdb097d
fix compile warnings
24 years ago
Yasuo Ohgaki
83059ae3de
Use {NULL, NULL, NULL} to terminate function entry.
# It does not fix any bugs, since {0} works also.
24 years ago
Sebastian Bergmann
90613d2282
Maintain headers.
24 years ago
Sebastian Bergmann
38933514e1
Update headers.
24 years ago