Shane Caraveo
69f56e8c4a
make fastcgi usage threadsafe, ready for future multithreaded fastcgi implementation
get rid of environment overwriting but hooking into php's environment function
set $_ENV correctly for mod_fastcgi
add -b to specify binding for fastcgi
new readme file with information for running under apache2.0 and iis
24 years ago
Zeev Suraski
d31604997b
We leak quite a few things intentionally, if you want to debug it - enable
explicitly please..
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
Marcus Boerger
0b25d07f15
Fix headers when default content type is used.
#THIS fixes the problems with error_log()
24 years ago
Edin Kadribasic
1fb6a30f0f
Debug functions should only work in debug mode.
24 years ago
Harald Radi
e84bddf76a
dump memory leaks on shutdown
24 years ago
Sascha Schumann
2c3801b979
Generate content-type header, if the user did not specify one of its own.
Noticed by: Edin Kadribasic <edink@proventum.net>
24 years ago
Sascha Schumann
b3e562f9ef
Add CRLF after complete HTTP reply header
24 years ago
Sascha Schumann
99cfb41da0
Use "Status: %d" instead of "HTTP/1.0 %d X" in the CGI SAPI module
as per the CGI RFC.
The status notation is incompatible with Apache's non-parsed-header mode
"nph-*", but that has never worked before anyway. One could make the
format string configurable.
Noticed by: Sebastian Bergmann
24 years ago
Andi Gutmans
805a1653f0
- Revert WS changes
24 years ago
Andi Gutmans
85983fe957
- This shouldn't have snuck in.
24 years ago
Andi Gutmans
4216379152
- Stop using persist_alloc().
24 years ago
Edin Kadribasic
2d953b348a
Merge from cli.
24 years ago
Edin Kadribasic
8e15de012a
Added copyright notice to php -v output.
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
Markus Fischer
ccbadfc111
- Prefix the first version line with 'PHP' so it's easier to use shell tools to
parse the version number (both CLI and CGI).
24 years ago
Markus Fischer
bf351e9639
- This affects both CGI and CLI sapi:
Remove Zend version output from -m switch and move it over to the output of
the -v switch (-v is supposed to list version numbers, not -m).
24 years ago
Preston L. Bannister
57c5998ff9
Backed out preceding change.
24 years ago
Preston L. Bannister
d706e224ac
Detect when running under IIS and default force_redirect to zero. This This means an explicit php.ini setting is no longer required.
(No extraneous whitespace changes this time :).
24 years ago
foobar
42c82bb40d
Revert the last patches.
24 years ago
Preston L. Bannister
06f375b1cf
Detect when running under IIS and not require explicit setting of force_redirect.
This means an explicit php.ini setting is no longer required.
24 years ago
Sander Roobol
7586cdc654
Added the current SAPI to the output of php -v
24 years ago
Sander Roobol
7a64b2b7e5
Fixed some minor typos
24 years ago
Sebastian Bergmann
edba077000
Fix build.
24 years ago
James Cox
ba85302e79
updated cgi warning notice.
24 years ago
Yasuo Ohgaki
439b56842f
CGI/CLI take file and dir for -c option by this.
@ Both 'file' and 'path to php.ini' is allowed for "-c" cli/cgi option. (Yasuo)
24 years ago
Wez Furlong
abc5a2cacb
fix quoting
24 years ago
James Cox
99a68d4f83
just did...
24 years ago
James Cox
f3d107a180
updated the alert sent to the browser. removed the verbosity, and linked to more info.
24 years ago
Shane Caraveo
c806dca62c
add security impersonation feature for running under IIS security
24 years ago
Shane Caraveo
c8f5565bf3
woohoo, take some credit!
24 years ago
Shane Caraveo
f3a60dd1a6
children should be zero by default, enable by setting PHP_FCGI_CHILDREN env var.
24 years ago
Shane Caraveo
79bb884eec
combine fastcgi capability with regular cgi binary
include fastcgi library for ease of windows builds
NOTE: included fastcgi library is modified for thread safety, but
fastcgi support in cgi_main.c is only written for single
threaded serving. This does not present any issue for using
fastcgi.
24 years ago
Derick Rethans
393cbe0ac3
- Put them back (and do it right)
24 years ago
Derick Rethans
c8740575c4
- Remove unused variables
24 years ago
Shane Caraveo
db73f90953
add comment for IIS users
fix some whitespace
24 years ago
Shane Caraveo
cd18533a10
This is much better. With FORCE_CGI_REDIRECT turned on by default for compilation,
we can now define this in the ini file. So it can be turned on for apache, turned
off for IIS which does not have a redirect issue. Alternately, a different 'REDIRECT_STATUS'
environment var can be defined in case some web server out there needs it.
new ini vars
cgi.force_redirect 0|1
cgi.redirect_status_env ENV_VAR_NAME
24 years ago
Shane Caraveo
e2b1161ea6
fix force redirect crash under multithreaded compile
should be discused: fix redirect detection to only work with apache or netscape,
where we know they set an environment variable regarding redirect. IIS has
no security issue here. Don't know about other windows web servers.
24 years ago
Derick Rethans
b8a5daf59c
- Make the errorcode 255. (Doing docs right away)
24 years ago
Derick Rethans
86fa2d3937
- Let php_execute_script return 0 on failure and 1 on sucess, and change
SAPIs accordingly. (Andrei, Derick)
24 years ago
Sebastian Bergmann
dcd4e0a2ec
Remove obsolete CG(extended_info) = 0 calls, we already do this in zend_set_default_compile_time_values().
24 years ago
Edin Kadribasic
1769e3fcdc
Fixed bug #9041 and others in the same class (patch by pete.lee@ubs.com)
24 years ago
Shane Caraveo
6120b8dc5a
reimplement extension listing
24 years ago
Sebastian Bergmann
38933514e1
Update headers.
25 years ago
Thies C. Arntzen
f026dae4f2
@- Added -w option to the cgi-version. This will remove all comments and
@ whitespace from teh script. (Thies)
25 years ago
Rui Hirokawa
975ed901aa
fixed output problem with output buffering handler.
25 years ago
Alex Waugh
bddb9539f7
Convert PATH_TRANSLATED for RISC OS
25 years ago
Jeroen van Wolffelaar
eb38ca844b
Undo Z_ subst for sapi and ext/yaz
25 years ago
Jeroen van Wolffelaar
c033288573
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
25 years ago
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
25 years ago