Daniel Beulshausen
3b20a425c9
added missing SLS_FETCH()
26 years ago
Sascha Schumann
276cb7cdb1
Add apache_child_terminate() and INI setting apache.child_terminate
which defaults to 0.
Submitted by: Sam Liddicott <sam.liddicott@ananova.com>
26 years ago
Sascha Schumann
107aa9f71a
Align ZTS handling of globals with common usage
26 years ago
Daniel Beulshausen
d41137fedf
fix win32 apache module
# this is ugly, has someone a better way?
26 years ago
Daniel Beulshausen
1f31360f01
fix windows build
26 years ago
Sascha Schumann
0ddb725f91
Axe rest of DAV leftovers and use STD_PHP_INI_ENTRY in the INI section
26 years ago
Sascha Schumann
dedec6614e
Automatically carry over macro definitions from Apache.
We don't take everything, because apxs' CFLAGS also includes
optimization, debugging, et cetera flags.
PR: #7211
26 years ago
Hartmut Holzgraefe
929197cf83
merged ext/apache/CREDITS and sapi/apache/CREDITS
26 years ago
Hartmut Holzgraefe
1f6878e912
2nd step towards auto-credits
26 years ago
Zeev Suraski
030b707296
Update SAPI modules to interface with the new TSRM.
Enable thread-safety memory debugging in ISAPI when in debug mode
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
Sascha Schumann
04f180b08a
More verbose error message for non-working apxs case
26 years ago
Zeev Suraski
a023f9280a
- Fix Windows build
- Changed the Apache .dsp to expect the Apache source code files under php_build
26 years ago
Zeev Suraski
8c4852c2cb
Fix a nasty bug in the shutdown sequence of PHP under Apache.
26 years ago
Andi Gutmans
0330643ea2
- Revert patch which seems to have caused the STOP mechanism not to work.
- I'm not quite sure why this should have caused harm even if not completey
- the right way of doing it.
26 years ago
Zeev Suraski
0ee12a6488
Fix Apache build
26 years ago
Sascha Schumann
27a8480028
Add/unify aborted connection handling
26 years ago
Zeev Suraski
1fd09132c2
Initial steps to move the INI mechanism to the Zend engine
26 years ago
Rasmus Lerdorf
c3026223f7
This appears to be the correct fix to me.
@ Fix memory leak in x-httpd-source mode (Jason Greene)
26 years ago
Daniel Beulshausen
c6e0cef254
trivial output change
# someone urged me too
26 years ago
Zeev Suraski
ce51b94461
Fix php_value issue
26 years ago
Zeev Suraski
1abd99a443
Fixed a problem that allowed users to override admin_value's and admin_flag's
26 years ago
Andi Gutmans
2622eba31d
- Cleanup some output functions
26 years ago
Sascha Schumann
3be464e4ec
UnixWare defines shutdown to _shutdown, which causes problems later
on when using a structure member named shutdown. Since this source
file does not use the system call shutdown, it is safe to #undef it.
PR: #6008 , #6362
26 years ago
Sascha Schumann
cd151feb19
#include "SAPI.h" once
26 years ago
foobar
9559b88894
Fixed bug #6356 .
26 years ago
Jon Parise
9a4c654606
Fix build after last commit.
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
Andi Gutmans
9b1aed8323
- Add another ..\ to the TSRM search path
26 years ago
Andi Gutmans
ed8c8539df
- Add TSRM to the apache workspace include path
26 years ago
Sascha Schumann
89a2e1dbdb
Add TSRM include dirs
26 years ago
Andi Gutmans
570e7e9a13
- Defining TSRM_WIN32 in each and every dsp sucked. Revert this change
26 years ago
Andi Gutmans
5bc9f72e85
- More Windows build fixes
26 years ago
Rasmus Lerdorf
8a36eb220e
Missed a couple of center attributes
26 years ago
Daniel Beulshausen
c8eb56cc59
changed the output directorys from the windowsbuilds
26 years ago
Daniel Beulshausen
7632bca956
updated project to work with readdir.h rev.1.5 from apache cvs
26 years ago
Sascha Schumann
1d68a02df3
The status quo in PHP is that the current directory is initialized
to the directory where the executing script is located.
Since this needs to be implemented for all SAPI modules anyway, this
change moves the functionality to php_execute_script() and gets rid
of the per-module code.
26 years ago
Sascha Schumann
320105bcd8
Use size_t as parameter type in the getenv member of struct sapi_module
26 years ago
Stanislav Malyshev
6f8f6c521c
Fix opened_path init
# forgot to commit
26 years ago
Rasmus Lerdorf
9021105c89
Fix typo
26 years ago
Rasmus Lerdorf
76a2d2538c
Heads up! I have moved the headers_only and response_code checks out of
SAPI and down into the individual SAPI modules. I have made the
appropriate changes in all the SAPI modules, but please verify these.
The reason for this change is that Apache sometimes will feed PHP
a request_method of GET but have r->header_only set to true. This happens
in an ErrorDocument redirect. In this same scenario we want to preserve
the status code as well instead of just overwriting it with a 200 and
losing this information. For now the other sapi modules act exactly as
before since they probably do not make this distinction, and they may
not even have a valid response code this early in the request.
@ Fix HEAD request bug on an Apache ErrorDocument redirect and preserve
@ the status code across the redirect as well. (Rasmus)
26 years ago
Rasmus Lerdorf
89107a221b
Missed a symbol
26 years ago
Zeev Suraski
52ff887db5
Made ob_start() and friends reentrant. It's now possible to implement this
long-requested functionality, now that output buffering is re-entrant:
function eval_ret($code)
{
ob_start();
eval($code);
$retval = ob_get_contents();
ob_end_clean();
return $retval;
}
26 years ago
Rasmus Lerdorf
b480b8dace
Fix symbol clash which caused a DSO problem on OpenBSD
@ Fix symbol clash which caused a DSO problem on OpenBSD (Rob Black and
@ anil@recoil.org )
26 years ago
Sascha Schumann
06382f01fd
Fix prototype of apache_child_exit_handler and remove popen-related
preprocessor directives/macros.
26 years ago
Thies C. Arntzen
1cee6c5b78
@- Fixed closing
26 years ago
Andreas Karajannis
59604815e1
Fixed module / global shutdown for apache.
GSHUTDOWN functions are now executed and MSHUTDOWN functions are executed on child process exit
26 years ago
Stanislav Malyshev
905fb8ef82
Fix #5432 : should register all variables. Thanks jeroen@darius.demon.nl.
26 years ago
Rasmus Lerdorf
f2348a4826
When using HTTP auth from PHP, fill in the %u custom log field so the
authenticated used id will get logged in the Apache access_log
@- When using HTTP auth from PHP, fill in the %u custom log field so the
@ authenticated used id will get logged in the Apache access_log (Rasmus)
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