Edin Kadribasic
2d953b348a
Merge from cli.
24 years ago
Edin Kadribasic
af5663fa50
Due to the way Zend handles exit() we cannot rely on the return code
of php_execute_script.
24 years ago
Edin Kadribasic
190719ab97
Made constants persistent and fixed a memory leak.
24 years ago
Edin Kadribasic
1501657b2f
Register STDIN, STDOUT, and STDERR "constants" in cli in cases where
script itself is not being loaded from STDIN.
This enables constructs like fwrite(STDERR, "Error 42");
24 years ago
Wez Furlong
64df5577bf
Add README and CREDITS...
24 years ago
Wez Furlong
139fd6a8e4
Fix bug when length was queried before the string was converted.
24 years ago
Wez Furlong
3fca69809d
Use the GIT for inter-thread marshalling.
24 years ago
Harald Radi
02a13a4ec4
this way it even compiles
#blame me if i did something wrong, i didn't test it ;)
24 years ago
Wez Furlong
e754361405
Implement ActiveScript interfaces.
This allows use of PHP in:
Client-side script in Internet Explorer
Windows Scripting Host
ASP and ASP.NET pages
It's mostly working... give it a go.
You will need to regsvr32 the php4activescript.dll manually.
24 years ago
Sascha Schumann
d7edeee55f
Improve readability of the header send function
24 years ago
Cliff Woolley
8283979afc
Allow the version checks for --with-apxs= and --with-apxs2= to work
with development version of Apache, whose version strings end in "-dev",
eg "Apache/2.0.37-dev".
PR: 17233
Submitted by: Dale Ghent <daleg@elemental.org>
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
Cliff Woolley
78cac2a42e
* restore the php_flag and php_admin_flag Apache directives which for
some mysterious reason never made their way from sapi/apache to
sapi/apache2filter when it was first written PR: 16629
* change the allowed locations of php_admin_value (and php_admin_flag to
match) to ACCESS_CONF instead of OR_NONE to match sapi/apache. No
idea why it was ever OR_NONE. PR: 16489
24 years ago
Jason Greene
e2c80df0dd
Fix fastcgi build, may need more work
# Sascha, would you mind looking this over?
24 years ago
Marko Karppinen
5a5767e1d6
Patch by Justin Erenkrantz <jerenkrantz@apache.org> for enabling
--with-apxs2 build on Darwin. Omitting the change to start linking
with libtool for now, though.
24 years ago
Jim Jagielski
8006ee79a3
More verbose but more generic error message when we spot multiple
PHPINIDir directives
24 years ago
Markus Fischer
965b4c26f1
- Update about CLI default settings and it's weirdness.
24 years ago
Edin Kadribasic
8e15de012a
Added copyright notice to php -v output.
24 years ago
Sebastian Bergmann
5192f6432c
Patch by Justin Erenkrantz <jerenkrantz@apache.org>. This should be MFHed.
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
Zeev Suraski
ce20564d1e
whitespace
24 years ago
Zeev Suraski
2d0f07d086
Add missing element
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
Rui Hirokawa
f30b722f14
Added conversion support from script character encoding to internal character encoding. This feature is very useful for japanese who uses Shift_JIS encoding because some of characters in Shift_JIS are including '0x5c' and it causes some troubles on Zend parser. This patch is made by Masaki Fujimoto.
24 years ago
Derick Rethans
dedf22f5ad
- Added Aaron Bannert as maintainer
24 years ago
Edin Kadribasic
d00252cf38
Update README with register_argc_argv settings override.
24 years ago
Aaron Bannert
8e176a10fc
Fix a graceful restart SEGV. We no longer only perform initialization
on the second pass through the post_config. Now we only avoid the
initialization only on the first DSO load, and on all subsequent loads
we rerun the init code.
24 years ago
Aaron Bannert
b759322411
Fix an elusive and intermittent startup SEGV. The problem was
the static string we were using to set an initialization flag
would get remapped to a different location when Apache reloaded
the DSO, causing us to not run our initialization routines.
Submitted by: Justin Erenkrantz <jerenkrantz@apache.org>
Reviewed by: Aaron Bannert (I added the big comment too)
24 years ago
foobar
5f13f4ecb7
Force register_argc_argv=On for CLI
24 years ago
Marko Karppinen
b7e50782b7
Well that didn't last long! (Reverting previous.)
24 years ago
Marko Karppinen
32ff990c68
Prelim. patch to enable apache2filter to link on Darwin.
Submitted by: Justin Erenkrantz <jerenkrantz@apache.org>
Reviewed by: markonen
# A stopgap measure while we try to find a "real"
# solution, if one exists.
24 years ago
Sascha Schumann
1ed3f698fe
ap_php_optopt is set but never used
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
foobar
2c8e8e0406
Fix build when openssl is enabled.
24 years ago
Sascha Schumann
12ba44827a
be a bit more verbose about what is wrong
24 years ago
Sascha Schumann
e2ad07fdcf
Fix external builds
24 years ago
foobar
492efe963f
- Fix for bug: #16791 . (more reliable test)
24 years ago
Aaron Bannert
b2f9b6fb16
Apache does a full load, unload, load cycle for each DSO module.
This patch makes sure that any startup actions that are performed
for PHP don't happen until the second load (the second call to
the post_config hook), and it also prevents subsequent calls
to the initialization routines.
Suggested By: Cliff Woolley
PR: 16475, 16754
24 years ago
Hartmut Holzgraefe
4852dd3569
apache_child_terminate() returns status as bool
proto fixes
24 years ago
foobar
f54f199906
This was not supposed to be uncommented..yet.
24 years ago
foobar
dace2eca03
Part 4 of apache sapi build fixes:
- Fixed many conflicts caused by bogus includes, e.g the infamous XtOffset
redefinition warning is gone now.
24 years ago
foobar
eb18c5c38c
Part 3 of static apache build fixes:
- Use the PHP_CFLAGS when compiling the php4 module in apache tree.
- Use the apache include dir only when compiling sapi/apache
o Fixes the fnmatch.h issue Wez complained about :)
24 years ago