Derick Rethans
9b517c4b93
- Revert changed to implicit_flush behavior. The new behavior was not
intended in the first place.
24 years ago
Yasuo Ohgaki
b52edbddf9
Shouldn't enable implicit_flush like this.
Most problems are fixed. If you find internal function that does
not follow my comment, please fix it or let me know.
24 years ago
Sascha Schumann
e6e54605b7
Follow Yasuo's suggestion and build sapi program's under the sapi-specific
directory.
Move sapi-specific makefile fragments to their respective directory.
Create an embed sapi module which resides in its own dir now.
24 years ago
Edin Kadribasic
4be735db9e
Those two have enough credits already :)
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
Jan Lehnardt
298ae37e8c
- prepare non-html phpinfo output for zend extensions
24 years ago
Marcus Boerger
8e7acaca47
change order of initialisation to allow making filename available
through $_SERVER variables (Bug #18657 )
24 years ago
Marko Karppinen
6d80c191bb
The link lines don't need any of $DEFS, $INCLUDES, $EXTRA_INCLUDES or
$CPPFLAGS, right? Removed them. Added frameworks to $COMMON_FLAGS.
24 years ago
Marko Karppinen
5611c2fc78
Support compiling and linking against Darwin / Mac OS X frameworks
24 years ago
Marko Karppinen
b231fc0d35
Made PHP_ADD_LIBPATH use the $ld_runpath_switch and changed the Darwin
link lines in sapi/cli and sapi/cgi to use $NATIVE_RPATHS.
This is a tentative fix for #18450 .
24 years ago
foobar
6a42e635ca
Needed this to be able to test safe-mode stuff on cmd-line
24 years ago
Marko Karppinen
23de5d1c20
- You don't need libtool to build sapi/cli on Darwin.
- We don't need libtool to build sapi/cli on Darwin.
- You want the sapi/cli build line to be in sapi/cli, not Makefile.global.
- We want the sapi/cli build line to be in sapi/cli, not Makefile.global.
- He can go about his business.
- You can go about your business.
- Move along.
- Move along. Move along.
24 years ago
Edin Kadribasic
11bc56d48b
Fix exit code (bug #17733 ).
24 years ago
Edin Kadribasic
acae873a6b
Disable installing pear when --disable-cli is used since pear installer
needs cli to function.
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
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
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
Sander Roobol
7586cdc654
Added the current SAPI to the output of php -v
24 years ago
Edin Kadribasic
d00252cf38
Update README with register_argc_argv settings override.
24 years ago
foobar
5f13f4ecb7
Force register_argc_argv=On for CLI
24 years ago
Sascha Schumann
1ed3f698fe
ap_php_optopt is set but never used
24 years ago
foobar
7c2811e1ab
Make it possible to actually disable the CLI..
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
foobar
49ba2a983b
WS fix
24 years ago
Marcus Boerger
406c665c13
recorrect las checkin
24 years ago
Marcus Boerger
f277bf0c5c
allow other modes to work with -- correct
#original idea was to allow this *only* for PHP_MODE_STANDARD
24 years ago
Marcus Boerger
a2631c1f1d
fix behaviour on --
#now php -- -i for scriptfile -i works
24 years ago
Edin Kadribasic
62df9cf644
Override max_execution_time, setting it to unlimited.
24 years ago
Edin Kadribasic
9ecec88998
Documented -r and added TODO
24 years ago
Marcus Boerger
fdf9d3502a
-removed -x
-error handling for illegal switch combinations
-corrected ws for one case block
24 years ago
Sebastian Bergmann
bfa05df3fd
Nuke unused variables.
24 years ago
Marcus Boerger
122c18741c
@Added new switch -x to CLI that enables execution of files without @scripting tags. (Marcus)
-Add -x
#Read follow up mail
24 years ago
Marcus Boerger
343b413cf8
-passing arguments to CLI, see: php -h
24 years ago
Edin Kadribasic
7918fe45b4
Cleaned up previous commit.
#Oops, commited older patch the first time :)
24 years ago
Edin Kadribasic
61071e6b7b
@- Added -r option to the CLI version of PHP which executes a piece of PHP
@ code directly from the commmand line. (Edin)
24 years ago
Sascha Schumann
9d9d39a0de
Please welcome the new build system.
If you encounter any problems, please make sure to email sas@php.net
directly.
An introduction can be found on
http://schumann.cx/buildv5.txt
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
Edin Kadribasic
48f688a261
Turned implicit_flush on.
Cleaned up help text.
24 years ago
Edin Kadribasic
f47a9c8af3
Added README file for CLI SAPI.
24 years ago
Edin Kadribasic
13ca332184
Enable extensions to specify that they are not supposed to be
built with the CLI SAPI. This is done by passing "nocli" as the
3rd parameter to PHP_EXTENSION macro.
24 years ago
Jon Parise
ea089d09ae
Add a note that this statement will never be reached.
24 years ago
Edin Kadribasic
fd7ff95fde
Added --disable-cli option.
24 years ago
Sebastian Bergmann
43b1d2acd1
Give Edin Kadribasic his due credits.
24 years ago
Edin Kadribasic
f18fade888
No need to dupe this string in cli sapi (Bug #15181 ).
24 years ago