Commit Graph

521 Commits

Author SHA1 Message Date
Felipe Pena
9b07568c43 - Fixed bug #48930 (__COMPILER_HALT_OFFSET__ incorrect in PHP >= 5.3) 2010-06-27 21:46:16 +00:00
Felipe Pena
3396a6d185 - Fixed bug #48930 (__COMPILER_HALT_OFFSET__ incorrect in PHP >= 5.3) 2010-06-27 21:46:16 +00:00
Michael Wallner
11d24c1593 * implement new output API, fixing some bugs and implementing some feature
requests--let's see what I can dig out of the bugtracker for NEWS--
  and while crossing the road:
   * implemented new zlib API
   * fixed up ext/tidy (what was "s&" in zend_parse_parameters() supposed to do?)

Thanks to Jani and Felipe for pioneering.
2010-05-31 10:29:43 +00:00
Johannes Schlüter
61db5cf98a - Improved CLI Interactive readline shell (Johannes)
. Added cli.pager ini setting to set a pager for output.
  . Added cli.prompt ini settingto configure the shell prompt.
  . Added shortcut #inisetting=value to change ini settings at run-time.
  . Don't terminate shell on fatal errors.

A pager can be a an shell command which will receive the command output on its
STDIN channel

php > #cli.pager=less
php > phpinfo();
(output will appear in the pager)
php > #cli.pager=grep -i readline
php > phpcredits();
Readline => Thies C. Arntzen
php > #cli.pager=
(output appears again direct on the terminal)

A prompt can contain a few escape sequences like

php > #cli.prompt=\e[032m\v \e[031m\b \e[34m\> \e[0m
5.3.99-dev php > //Colorful prompt with version number

A prompt can also contaian PHP code in backticks

php > #cli.prompt=`echo gethostname();` \b \> 
guybrush php >
2010-05-20 20:55:33 +00:00
Raphael Geissert
bce8aae080 Document CGI options in the manpage (bug #51718)
Patch by Daniel Egeberg
2010-05-11 15:07:31 +00:00
Raphael Geissert
7d4dde57d9 Document CGI options in the manpage (bug #51718)
Patch by Daniel Egeberg
2010-05-11 15:07:31 +00:00
Kalle Sommer Nielsen
febee11285 Removed register_globals 2010-04-21 01:27:22 +00:00
Johannes Schlüter
26af575926 Add ReflectionZendExtension class and --rz option to CLI 2010-03-30 22:35:23 +00:00
Jani Taskinen
af49e58f51 - Reverted r296062 and r296065 2010-03-12 10:28:59 +00:00
Jani Taskinen
06f072cb5e MFH: Improved / fixed output buffering (Michael Wallner) 2010-03-11 10:24:29 +00:00
Kalle Sommer Nielsen
bf7de28e46 Fixed bug #50795 (man pages have bad whatis entries)
- Patch by Debian
2010-02-17 05:32:52 +00:00
Ilia Alshanetsky
8543914732 Update copyright year in the man file 2010-01-04 12:38:07 +00:00
Sebastian Bergmann
9ba1e81665 sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
Felipe Pena
4411621217 - Fixed bug #50209 (Compiling with libedit cannot find readline.h)
(patch by tcallawa at redhat dot com)
2009-12-13 17:06:47 +00:00
Jani Taskinen
4944354eec - Sync files 2009-12-02 08:22:05 +00:00
Ilia Alshanetsky
9e76501f1e Fixed test 2009-09-13 13:14:11 +00:00
Pierre Joye
4417646d72 - be sure to get all crt dbg errors in stderr 2009-09-02 20:02:17 +00:00
Jani Taskinen
6dc86facd0 - Fixed bug #48802 (printf() returns incorrect outputted length) 2009-07-23 14:54:04 +00:00
Johannes Schlüter
d4671b904d Improve wording and drop outdated link 2009-06-29 09:37:06 +00:00
Johannes Schlüter
47be72139d MFH: It's 2009 2009-06-21 16:44:50 +00:00
Matt Wilmas
d55300298e MFH: Added zend_eval_stringl and made create_function(), etc. binary-safe 2009-06-05 18:50:32 +00:00
Arnaud Le Blanc
6540730732 MFH: Fix skipif 2009-05-20 10:08:32 +00:00
Hannes Magnusson
e2576c3504 MFH: Inglés gramática 2009-04-09 10:20:02 +00:00
Hannes Magnusson
6cda8a274a MFH: Fixed bug#47427 (-s outputs, not displays) 2009-04-09 10:07:56 +00:00
Felipe Pena
844ae2f336 - MFH: Fix ZTS build 2009-04-08 00:15:48 +00:00
Arnaud Le Blanc
95b308949c MFH: Fixed bug #47893 (CLI aborts on non blocking stdout) 2009-04-07 16:11:19 +00:00
Ilia Alshanetsky
71ea95354b MFH: Corrected fix for bug #46844 to only trigger on the 1st line of CLI
opened files.
2009-01-09 17:21:12 +00:00
Marcus Boerger
2aba368462 - MFH Catch exceptions in cli -a 2009-01-02 13:14:49 +00:00
Marcus Boerger
f77719d800 MFH
- Changed dl() to be disabled by default. Enabled only when explicitly
  registered by the SAPI layer. Enabled only with CLI, CGI and EMBED. (Dmitry)
[DOC]
2008-12-31 14:27:09 +00:00
Marcus Boerger
8bdeb10a08 - MFH Fix test 2008-12-31 12:33:12 +00:00
Sebastian Bergmann
08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Arnaud Le Blanc
cc2c720912 MFH: Fixed endless loop in cli when ignore_user_abort is on 2008-11-25 03:52:00 +00:00
Arnaud Le Blanc
8c4151ad72 Added header_remove() (chsc at peytz dotdk, Arnaud)
[DOC] proto void header_remove([string header_name])
      Removes an HTTP header previously set using header()
      The header_name parameter is optionnal, all headers are
      removed if it is not set

[SAPIs] The header_handler callback in sapi_module_struct has
           been changed, it now take a new argument.

           When it is set to SAPI_HEADER_DELETE, sapi_header->header is
           the name of an header, header_handler has to delete it.

           When it is set to SAPI_HEADER_DELETE_ALL, header_handler has
           to delete all headers.

           When sapi_header_op_enum is SAPI_HEADER_ADD or _REPLACE,
           sapi_header->header is in the form "Name: value", header_handler
           has to add or replace the given header.

           In all cases, header_handler must not free sapi_header or
           sapi_header->header. SAPI_HEADER_ADD must be returned if the
           header has been added or replaced, or 0 in other cases.
2008-11-13 10:14:04 +00:00
Arnaud Le Blanc
9b0d76d585 Open STDIN and php://stdin streams with the relevant
wrapper when the file descriptor is a socket (inetd, etc)
Fixes bug #43731
2008-11-04 21:05:31 +00:00
Rob Richards
a16bcaeb4b MFH: use getenv 2008-09-30 15:11:05 +00:00
Dmitry Stogov
762d6706d3 Fixed bug #42318 (problem with nm on AIX, not finding object files) 2008-09-01 13:15:31 +00:00
Marcus Boerger
3dadcee60b - MFH Fix test 2008-08-30 11:32:29 +00:00
Jani Taskinen
13dff74889 fix tests 2008-08-14 20:51:35 +00:00
Antony Dovgal
593e7c7da4 MFH: nuke unused var 2008-08-14 09:46:26 +00:00
Jani Taskinen
e5e6f553a2 MFH 2008-08-13 00:53:28 +00:00
Dmitry Stogov
05376077b3 Fixed bug #45779 (regression with shebang lines processing) 2008-08-12 16:43:53 +00:00
Antony Dovgal
5265201075 fix warnings 2008-07-25 15:05:48 +00:00
Arnaud Le Blanc
aa31988e43 MFH: Allow filters to work on INPUT_SERVER in CLI (bug #44779) 2008-07-24 09:12:45 +00:00
Antony Dovgal
28a22396d4 MFH: invert the logics - FLAG_FCLOSE -> FLAG_NO_FCLOSE 2008-07-23 11:25:14 +00:00
Felipe Pena
fdfbfb96a1 - MFH: Fixed bug #44246 (closedir() accepts a file resource opened by fopen()) 2008-07-22 14:09:24 +00:00
Antony Dovgal
8793440eee fix test 2008-07-13 09:42:25 +00:00
Nuno Lopes
180a7bef35 add test for the shebang thing 2008-07-06 16:59:39 +00:00
Nuno Lopes
504fe5eedb fix test for good consoles (tm) 2008-07-06 16:38:18 +00:00
Antony Dovgal
6b68a94242 fix test 2008-06-06 07:45:51 +00:00
Antony Dovgal
b021e04c0e MFH: fix test 2008-04-07 12:14:04 +00:00
Felipe Pena
3230a77d89 MFB: Fixed bug #44564 (escapeshellarg removes UTF-8 multi-byte characters) 2008-03-30 12:24:10 +00:00
Marcus Boerger
c0b4683661 - MFH Use sizeof rather than strlen and cleanup 2008-03-25 21:58:29 +00:00
Rasmus Lerdorf
45e327a672 Add new empty child terminate sapi hook to the rest of the sapis 2008-03-18 22:23:21 +00:00
Dmitry Stogov
8c885b8913 Implemented concept of "delayed early binding" that allows opcode caches to perform class declaration (early and/or run-time binding) in exactly the same order as vanila php.
The following pseudo-code explains how it should be used in opcode cache.

function cache_compile_file($filename) {
        if (!is_cached($filename)) {
                ...
                orig_compiler_options = CG(compiler_optins);
                CG(compiler_options) |= ZEND_COMPILE_IGNORE_INTERNAL_CLASSES |
                                        ZEND_COMPILE_DELAYED_BINDING;
                $op_array = orig_compile_file($filename);
                CG(compiler_options) = orig_copiler_options;
                ...
        } else {
                $op_array = restore_from_cache($filename);
        }
        zend_do_delayed_early_binding($op_array);
}
2008-03-18 08:36:30 +00:00
Nuno Lopes
37660519cb fix tests (removed duplicated stuff) 2008-03-17 16:32:15 +00:00
Antony Dovgal
964e0522a1 fix test 2008-03-17 14:05:39 +00:00
Marcus Boerger
af316021e8 - Rewrite scanner to be based on re2c instead of flex
The full patch is available as:
  http://php.net/~helly/php-re2c-5.3-20080316.diff.txt
  This is against php-re2c repository version 98
  An older patch against version 97 is available under:
  http://php.net/~helly/php-re2c-97-20080316.diff.txt
2008-03-16 21:06:55 +00:00
Felipe Pena
8acaf4118c Fix test (new constant was added in PREG) 2008-03-08 23:06:42 +00:00
Johannes Schlüter
278b7f2bdd - MFH: New tests 2008-03-07 21:33:17 +00:00
Johannes Schlüter
95623a1d70 MFH: New tests 2008-03-01 21:55:38 +00:00
Antony Dovgal
01fa5a782b MFH 2008-02-28 09:18:13 +00:00
Marcus Boerger
0ebb904bbb - Small improvements, no malloc needed for the zval 2008-02-03 17:49:46 +00:00
Dmitry Stogov
8cab54a897 Fixed bug #43968 (Extending internal class causes a crash)
The fix is a workaround for GCC optizer bug.
2008-01-29 20:01:31 +00:00
Antony Dovgal
9a16d91117 fix test
Derick, you're adding new methods too fast =)
2008-01-29 12:23:48 +00:00
Hannes Magnusson
bb9fa509fe Fix test 2008-01-27 19:10:41 +00:00
Ilia Alshanetsky
f94d19ffea Fixed test 2008-01-13 17:23:14 +00:00
Ilia Alshanetsky
93264ecc32 Update copyright 2008-01-01 18:30:20 +00:00
Ilia Alshanetsky
79e02d8786 Update copyright 2007-12-31 21:34:42 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Antony Dovgal
996e245143 fix test 2007-12-15 12:46:22 +00:00
Rob Richards
c4575f4c4b MFH: fix win build 2007-10-05 16:00:30 +00:00
Jani Taskinen
2bc631fb40 MFH:- Added common getopt implementation to core.
MFH:- Added long-option feature to getopt().
MFH:- Made getopt() available on win32 systems.
MFH:  Patch by: David Soria Parra <dsp@php.net>
[DOC]: These changes will be available from 5.3+

# Note: Fixed also tests and synced basic_functions.c with HEAD.
2007-10-01 12:40:54 +00:00
Nuno Lopes
e029a0ee59 fix a few compiler warnings (mostly use of unitialized values) 2007-09-29 11:18:42 +00:00
Stanislav Malyshev
50293835bf remove unneeded variables 2007-08-08 23:51:57 +00:00
Jani Taskinen
eb923bf6fc MFH: - Changed AC_ARG_* options to PHP_ARG_* options.
MFH: - Some cleanups here and there
MFH: - Enabled PHP_CHECK_CONFIGURE_OPTIONS (checks for unknown configure
MFH:   options)
# Note to Marcus: ext/dba/config.m4 needs to be "converted" to use
# the PHP_ARG_* options. I did't touch it needs quite a lot of work to keep
# it's current behaviour regarding "enabled-by-default" parts of it.
#
# Hint: By using the PHP_ARG_* options you have the "default" option.. ;)
2007-07-11 23:20:37 +00:00
Antony Dovgal
3285bd834b fix folding 2007-06-04 09:47:54 +00:00
foobar
6567a93a2a fix test 2007-06-01 22:18:56 +00:00
Antony Dovgal
568525bbb5 fix test (second try) 2007-05-30 14:43:18 +00:00
Antony Dovgal
2958037b2a fix test 2007-05-30 14:40:24 +00:00
Antony Dovgal
b529617499 fix tests 2007-05-30 10:19:39 +00:00
Johannes Schlüter
9edf1dc617 - MFH: Fix build without reflection 2007-05-06 12:57:50 +00:00
Marcus Boerger
3cd6bc54bc - MFH --ri does not require ext/Reflection
- MFH --ini to show ini files being used
2007-05-05 16:21:07 +00:00
Hannes Magnusson
42170968cf MFH: php --ri main 2007-04-25 09:56:29 +00:00
Johannes Schlüter
3d7dd44ceb - MFH: Add my name (sync to CREDITS file) 2007-04-23 20:54:22 +00:00
Antony Dovgal
a10cd19d05 MFH: fix long options 2007-04-23 11:05:16 +00:00
Marcus Boerger
f62d5c9adf - MFH getopt fixes 2007-04-22 15:31:16 +00:00
Dmitry Stogov
52a9667c3a Fixed tests 2007-04-19 07:00:41 +00:00
foobar
75d8d28e71 - Fix a possible leak when multiple -c parameters are used 2007-04-17 19:46:13 +00:00
Antony Dovgal
61a3b763d8 fix tests 2007-04-13 12:29:32 +00:00
foobar
1c36d38891 - Fix test: Some people actually use --enable-debug here.. 2007-03-28 12:25:33 +00:00
Johannes Schlüter
d95939d566 - MFH: Fix handling of not existing long CLI options 2007-03-22 21:35:41 +00:00
Marcus Boerger
68c1c83149 - MFH Fix issue with long form of command line switches 2007-03-21 23:20:21 +00:00
Antony Dovgal
722287a538 fix tests 2007-03-17 19:16:17 +00:00
Marcus Boerger
50ea26760d - Avoid sprintf, even when checked copy'n'paste or changes lead to errors 2007-02-24 02:17:47 +00:00
Antony Dovgal
dfbc224555 MFH 2007-02-22 10:06:22 +00:00
Antony Dovgal
4a95928d1d MFH: implement PHP_STREAM_FLAG_NO_CLOSE and avoid hacks 2007-02-21 21:57:21 +00:00
Antony Dovgal
748b6fdeb3 MFH: make use of startup hooks 2007-02-20 19:20:41 +00:00
Marcus Boerger
38201d8d12 - MFH php --ri <extension> 2007-02-08 16:55:34 +00:00
Antony Dovgal
1b002cf39f use getenv() 2007-01-20 22:12:55 +00:00
Johannes Schlüter
a95781d9bf - MFH: Bump year 2007-01-10 22:17:27 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Antony Dovgal
41b55d9b78 MFH 2006-12-21 00:47:02 +00:00
Antony Dovgal
d6db0ccc12 fix test on MacOS 2006-12-19 13:08:35 +00:00
Antony Dovgal
459564e2d2 fix tests 2006-12-04 17:48:52 +00:00
Antony Dovgal
050e32ed65 fix test 2006-11-24 13:40:43 +00:00
Antony Dovgal
158ad3ee2f add tests for CLI 2006-11-24 13:33:38 +00:00
Ilia Alshanetsky
be18d5f345 Restore support for unquoted -d options 2006-09-22 17:41:09 +00:00
Dmitry Stogov
7d14dad02e MFH: Fixed mess with CGI/CLI -d command line option (now it works with cgi; constants are working exactly like in php.ini; with FastCGI -d affects all requests). 2006-09-19 20:33:12 +00:00
Antony Dovgal
4b257a1c0e fix leak with php -c /path -h 2006-09-15 08:18:36 +00:00
Dmitry Stogov
f7e99a2162 Fixed bug #38543 (shutdown_executor() may segfault when memory_limit is too low). 2006-08-22 12:04:53 +00:00
Antony Dovgal
6c52ec1319 MFH: fix #37920 (compilation problems on z/OS) 2006-06-27 08:27:10 +00:00
Antony Dovgal
20a379fa7d MFH: initialize pointers 2006-06-20 12:55:26 +00:00
Michael Wallner
f4106441cb - Fix Bug #37780 memory leak trying to execute a non existing file (CLI) 2006-06-19 14:52:34 +00:00
Johannes Schlüter
2f418134ff MFH 2006-06-03 22:02:02 +00:00
Edin Kadribasic
52566bba75 Give exe files 8MB stack (same default as on Linux) instead of Windows default 1MB 2006-05-18 21:46:12 +00:00
Dmitry Stogov
1f41b288e9 Fixed bug #37306 (max_execution_time = max_input_time) 2006-05-11 22:10:31 +00:00
Marcus Boerger
77c1b56cd7 - Update after api changes 2006-05-10 00:00:13 +00:00
Andrei Zmievski
c86e96db11 Typo. 2006-04-23 19:56:53 +00:00
Johannes Schlüter
7409ed6403 - MFH: List --rf/--rc/--re only with enabled reflection 2006-02-21 21:15:13 +00:00
Dmitry Stogov
6a176fa7b3 AIX support 2006-02-02 09:59:23 +00:00
Marcus Boerger
cb27823e82 - MFH Show the exact version 2006-01-22 22:09:54 +00:00
Marcus Boerger
575e6b6e7c - Make clear what -a mode gets you 2006-01-14 02:09:37 +00:00
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
Marcus Boerger
c19fa0bbde - MFH Add method support to --rfunction 2005-12-11 02:41:04 +00:00
Marcus Boerger
ba6c82eee9 - MFH --r* switches 2005-12-11 02:17:34 +00:00
foobar
d95275052b MFH 2005-12-06 01:08:49 +00:00
foobar
26b8b65c18 MFH: - Fixed bug #35409 (undefined reference to 'rl_completion_matches'). 2005-11-28 16:51:16 +00:00
foobar
c127df868e MFH: - Fix compile failure when ext/readline is compiled as shared (bug #35249) 2005-11-17 08:37:31 +00:00
Ilia Alshanetsky
57e49322a5 Fixed memory leak on php-cli -h 2005-11-15 15:27:26 +00:00
Marcus Boerger
9c14ce94f3 - MFH heredoc handling in -a mode 2005-11-07 19:14:40 +00:00
foobar
6ec23a56d8 MFH:- Fixed minor leak with -dzlib.output_compression=1 -m 2005-11-06 22:42:23 +00:00
Ilia Alshanetsky
5bb29235dc MFH: Fixed -m memory leak 2005-10-19 21:57:45 +00:00
foobar
3fbee80f35 - Fixed bug #34850 (--program-suffix and --program-prefix not included in man page names) 2005-10-13 10:02:59 +00:00
foobar
28a0aef13e MFH: removed confusing dot. 2005-10-11 18:58:59 +00:00
Johannes Schlüter
d3dc0a39bc - MFH: Fix #34557 php -m exits with "error" 1 2005-10-06 20:29:41 +00:00
Johannes Schlüter
0d993d2172 - Fix tab-completion for constants. 2005-08-14 13:07:15 +00:00
Marcus Boerger
256e6e3350 - MFH creadits to Johannes 2005-08-11 20:45:58 +00:00
foobar
000a9e3015 - Fixed problem with -dextension=foobar.so not having it's MINIT run. 2005-08-08 16:49:44 +00:00
Hartmut Holzgraefe
621238a3c3 fix extension loading from command line, resources didn't work
(still related to Bug #33899)
2005-08-08 08:45:33 +00:00
foobar
20241fe16a - 2004 -> 2005 2005-08-03 11:12:19 +00:00
Marcus Boerger
ae1fa04899 - Bugfix #33733 2005-07-25 18:04:13 +00:00
Dmitry Stogov
8de3367453 Fixed support for shared extensions on AIX 2005-07-07 05:54:43 +00:00
Ilia Alshanetsky
a462e687dc Fixed possible memory corruption. 2005-06-21 00:12:35 +00:00
foobar
4dfa3fc731 Some netware related build issues fixed (patch by: Kamesh Jayachandran <kameshj at fastmail dot fm> 2005-06-20 11:06:54 +00:00
Marcus Boerger
acd747d374 - Expose -a as special mode and show whether it is a shell or not 2005-06-06 07:11:08 +00:00
foobar
a20383ba06 - Unify the "configure --help" texts 2005-05-29 23:17:16 +00:00
Johannes Schlüter
bb6f4dfc7d - Fix readline loop-condition
- Fix cli_is_valid_code detection
2005-05-17 14:33:15 +00:00
Marcus Boerger
51fe495ea1 - Add command completion to CLI's -a mode 2005-05-14 19:33:18 +00:00
foobar
d24f853464 typofix 2005-05-07 15:43:55 +00:00
Marcus Boerger
13ba056aff - Update 2005-05-07 13:54:02 +00:00
Marcus Boerger
1623537998 - Improved interactive mode of CLI (php -a) 2005-05-07 12:24:18 +00:00
foobar
d7682085c6 Silence the warnings about weird characters in this man page 2005-04-30 04:12:01 +00:00
foobar
9af93dbb41 Expose EXEEXT and use for cli/cgi binaries 2005-04-21 14:57:53 +00:00
Antony Dovgal
9ba5535993 fix #28803 (enabled debug causes bailout errors with CLI on AIX
because of fflush() called on already closed filedescriptor)
2005-03-22 15:08:52 +00:00
foobar
a98460beac Revert bad idea. (no more error for invalid -d options) 2005-03-18 22:11:53 +00:00
foobar
9c2c04b580 - Made CLI option -d output error and exit if an non-existing (or unmodifyable) entry is passed 2005-03-17 13:43:32 +00:00
Derick Rethans
42b9b26e45 - ZTS fixes
#- Andrei, it would be nice if you could test ZTS builds too before you
#  commit...
2005-03-17 07:31:22 +00:00
Andrei Zmievski
06667585b5 Make it possible to load shared extensions from command line via
-dextension= mechanism.
2005-03-15 22:41:12 +00:00
Wez Furlong
07fd652824 it's 2005 already
# and we're all too lazy to go through and update all the copyright years :)
2005-03-12 14:07:35 +00:00
foobar
2c65e09a4b - Revert the weird change of ZEND_STRS() macro and use the correct
ZEND_STRL() macro.
# ZEND_STRS was changed to be same as ZEND_STRL..someone on crack? :)
2005-01-20 02:02:09 +00:00
Rasmus Lerdorf
fdaa130f3a Add the new request_time sapi struct entry to all the sapis. Some of these
may have ways of getting the request time without the extra syscall, but
for now let's just make sure we don't crash and people will eventually
fill these in where applicable.
2004-12-20 19:33:41 +00:00
Antony Dovgal
71d9afee0c fix CLI leaks when using malformed option string 2004-11-15 14:00:48 +00:00
Frank M. Kromann
1d04952b1d Fix typo in man page. Bug #30727. Patch by Jakub Vrana 2004-11-09 15:05:20 +00:00
Anantha Kesari H Y
315e58f2f6 As NetWare LibC has optind and optarg macros defined in unistd.h our local variables were getting mistakenly preprocessed so undeffing optind and optarg 2004-10-08 12:22:35 +00:00
Edin Kadribasic
546e5bbc43 Made php -m output sorted case-insensitevly 2004-07-14 22:30:29 +00:00
Marcus Boerger
9216b3d182 Add a notice on STDIN 2004-05-02 09:14:02 +00:00
Moriyoshi Koizumi
26799b851f - typo (must have sleep.) 2004-03-04 22:53:09 +00:00
Moriyoshi Koizumi
e5fb0e3fbd - Prevent cli from printing multiple "Interactive mode enabled" if
the command line option is given more than once (like -aaaaaa).
2004-03-04 22:49:54 +00:00
Marcus Boerger
1c00296cc7 Bugfix #27104 CLI/CGI SAPI module variable name conflict 2004-02-11 21:00:46 +00:00
Ilia Alshanetsky
c858a4e93c Fixed possible memory leak with INI values. 2004-02-06 03:08:27 +00:00
Ilia Alshanetsky
ffd3b1dd0a Parse command line ini directives passed using -d before -i, to ensure
correct settings output.
2004-02-04 22:49:28 +00:00
Wez Furlong
31f7699a85 Add optional php-win.exe variation of the CLI sapi.
php-win.exe runs in the windows GUI subsystem, and thus
has no console; stdio handles are effectively set to /dev/null
and no "dos box" will appear on screen when running scripts
using this sapi (php-gtk people will be familiar with this concept).

Aside from those differences, php-win.exe is 100% identical to
regular CLI
2004-01-14 03:14:18 +00:00
foobar
ccfc46b0aa - Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Edin Kadribasic
d2317fc110 Disable output buffering in CLI overriding php.ini setting.
Fixes #26755.
2004-01-02 22:31:32 +00:00
Andi Gutmans
3eadb12f7e - Commit fixes to PHP man page 2003-12-23 11:06:50 +00:00
Wez Furlong
d756e1db23 add win32 configure option for CLI to switch on CRT heap debugging 2003-12-22 13:08:04 +00:00
Ilia Alshanetsky
a643675b43 Fixed extra byte allocation for STD* constants and replace magic numbers
with sizeof().
2003-12-11 23:51:24 +00:00
Wez Furlong
05b9b20ed8 Add new (optional!) win32 build infrastructure.
Will follow up to internals@ shortly.
2003-12-02 23:17:04 +00:00
foobar
e01ab8c9cf - Made --program-prefix and --program-suffix work. (See bug #23030) 2003-12-01 15:17:13 +00:00
foobar
ca18b631fd - Should fix some CLI build problems on some systems. 2003-09-08 13:10:10 +00:00
Marcus Boerger
2fde9b7794 Add a shortcut 2003-09-02 21:41:01 +00:00
Stanislav Malyshev
06273c5637 MF4: -m fix for premature extension unloading 2003-08-28 11:50:32 +00:00
Marcus Boerger
d3473d1f58 - Provide a unified way to display uncaught exceptions, which shows
file/line/message info if possible.
- Add zend_eval_string_ex() to be able to handle exceptions in eval'd code.
- Use above function to fix memleaks in CLI.
2003-08-24 13:10:03 +00:00
Ilia Alshanetsky
bccc247a97 Set module id 0 (internal) for constants registered by php_cli in C. 2003-08-22 01:50:02 +00:00
Marcus Boerger
744dd20520 Fix warnings 2003-08-17 19:14:30 +00:00
Ilia Alshanetsky
98d998b7ee Fixed bug #20896 (-s -w modes with php-cli cause php to hang). 2003-08-13 01:29:51 +00:00
Ilia Alshanetsky
3253746c26 Preserve exit status for non-php execution modes. 2003-08-01 16:52:49 +00:00
Ilia Alshanetsky
68616d764c Fixed bug #23509 (exit code lost when exit() called from
register_shutdown_function())
2003-08-01 12:26:28 +00:00
Stanislav Malyshev
7e663790c7 flush after banner print 2003-06-16 16:14:38 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Derick Rethans
814f793035 - MFB: Version output beautification 2003-05-30 16:10:58 +00:00
Marcus Boerger
6ddd6ca2be MFB 2003-05-30 00:11:37 +00:00
Marcus Boerger
1aebe79599 Simply print errors 2003-05-29 14:45:03 +00:00
Marcus Boerger
a93bff54ef Update 2003-05-29 14:26:57 +00:00
Derick Rethans
87a85db670 - MFB 2003-05-26 18:37:48 +00:00
Derick Rethans
7b26ddd9b0 -Fix notice 2003-05-21 18:41:28 +00:00
Edin Kadribasic
43e54bf2c1 More clean way of ignoring headers in CLI since we do not need to
disable them selectively. This fixes problems for people who want
to use session module in CLI.
2003-04-28 10:04:50 +00:00
Marcus Boerger
1c1aa38ee5 Reset option parsing
# i swear i had them in before last commit
2003-04-27 19:41:36 +00:00
Marcus Boerger
129d0898ca split parameter parsing once more: do informal queries before others
#still a memleak in case of a parameter conflict
2003-04-27 19:19:29 +00:00
Marcus Boerger
d2833dc9c2 Revert some ini settings to be hardcoded due to popular demand 2003-04-23 22:52:44 +00:00
Marcus Boerger
de76ceb2d3 Fix more shutdown wierdness 2003-04-19 15:02:44 +00:00
Wez Furlong
7ca29424c4 Fix folding marker 2003-04-19 14:41:31 +00:00
Marcus Boerger
0bcfdd0262 Do init CG(in_compilation) here until someone finds a better place 2003-04-19 13:54:01 +00:00
Marcus Boerger
1b3467e72d Shutdown memleaks 2003-04-19 00:02:50 +00:00
foobar
2170ea8b4d Added missing CVS Id tags 2003-04-16 02:34:57 +00:00
Marcus Boerger
bb0f885d51 Hopefully last fix on error reporting 2003-04-09 00:38:19 +00:00
Marcus Boerger
7aa1e2cda4 more ini defaults for error message handling 2003-03-30 14:00:09 +00:00
Marcus Boerger
06a0e1c112 simplify and fix 2003-03-30 11:07:36 +00:00
Marcus Boerger
ac3113122a done 2003-03-30 10:56:34 +00:00
Marcus Boerger
c21f2b7493 use sizeof() as suggested by Andrei 2003-03-29 21:23:53 +00:00
Derick Rethans
fa59090287 - html errors should default to off (0) in CLI 2003-03-29 20:57:31 +00:00
Sebastian Bergmann
5ca078779a Eliminate some TSRMLS_FETCH() calls. Tested with Win32 build of SAPI/CGI and SAPI/CLI on Win32. 2003-03-25 08:07:13 +00:00
Marcus Boerger
58df04af27 - reenable $argc/$argv
- add a comment where hardcoded defaults would go
# i believe we have none for now though
2003-03-19 20:36:04 +00:00
Marcus Boerger
3e621fac94 make phpinfo() depend on executed sapi 2003-03-18 20:52:52 +00:00
Marcus Boerger
b21fdb762a use new callback to overwrite ini settings
# ok now lets split html_errors and phpinfo() formatting
2003-03-18 15:56:12 +00:00
Marcus Boerger
3ac6bb5017 remove entry done already 2003-03-03 00:15:50 +00:00
Marcus Boerger
d4fd1c07b1 - Allow long option names
- Update CLI's manpage

@Added support for long options in CLI & CGI (e.g. --version). (Marcus)

# In contrast to the preliminary patch this should work now completely.
# If all long option names are accepted we may even think about MFHing.
2003-02-16 01:23:11 +00:00
Marcus Boerger
ecaeb3004a fix parameter string (-R & -H) 2003-02-15 15:20:17 +00:00
foobar
7788cefdd3 "Generate" the man page so that it gets correct version always. 2003-02-12 04:38:30 +00:00
foobar
5896410c81 - Added the man page installation 2003-02-12 04:04:36 +00:00
Marcus Boerger
c681320471 Make that clear 2003-02-11 20:34:24 +00:00
Marcus Boerger
7fec2a3856 Document -H added by Ilia 2003-02-11 20:31:34 +00:00
Ilia Alshanetsky
f3ac7fc9c6 Added -H option to CLI binary. This option can be used to hide any arguments
including the script name passed to the CLI binary.
2003-02-11 16:18:42 +00:00
Marcus Boerger
0bce257947 Style corrections
See also: Stig's intro
Version info
2003-02-08 15:29:35 +00:00
Marcus Boerger
9e780033c2 Adding some text and some backslashes which are needed sometimes
somewhere...
2003-02-07 22:12:02 +00:00
Marcus Boerger
383aa3c2d1 Define STDIN/OUT/ERR for -B -R -F -E (works as expected).
Enable exit in same switches.
2003-02-07 21:55:51 +00:00
Marcus Boerger
598e82751d No more maximum line size for -R and -F 2003-02-07 20:53:05 +00:00
Marcus Boerger
fb44f1e0fb Rewrite/add some stuff 2003-02-06 20:10:52 +00:00
Marcus Boerger
ad7facdf2b # RTFM .. and then it goes better :-) 2003-02-05 00:35:20 +00:00
Marcus Boerger
c1f0159d63 First step - abrief version.
@Added man page for CLI version of PHP. (marcus)
# I was also thinking about an author section with
# The PHP Group, Edin Kadribasic, Marcus Boerger, Rasmus Lerdorf,
# Stig Bakken and Zeev Suraski beeing mentioned. Group of corse and
# the rest is listed in php_cli.c.
2003-02-05 00:12:46 +00:00
Marcus Boerger
afc673b61d remove it then....this forces to put work in man page ... 2003-02-04 20:52:13 +00:00
Sebastian Bergmann
b4cfff0403 Fix ZTS build. 2003-02-03 07:41:05 +00:00
Marcus Boerger
63d4f31604 - Added -B, -F, -R, -E for line by line std in processing.
- Added some error messages.
- Added more -h info.
@Added command line parameters -B, -F, -R and -E which allow to process
@stdin line by line (See php -h for more). (marcus)
#This allows to simply complex command line constructs...
2003-02-03 00:22:28 +00:00
Ilia Alshanetsky
973937e7aa Fix the line numbering when the 1st line in the script is #!. 2003-01-11 00:20:50 +00:00
Ilia Alshanetsky
5de9962d50 Fixed bug #21297. The fix also fixes miscalculation of lines numbers by 1
due the previously mentioned bug.
2003-01-08 00:41:53 +00:00
Zeev Suraski
19d47d9f6e Initialize lineno using the new infrastructure 2003-01-05 16:10:35 +00:00
Sebastian Bergmann
2c5d4b8c23 Bump year. 2002-12-31 15:59:15 +00:00
Moriyoshi Koizumi
740ee5df1c Recommited the patch 2002-12-20 15:51:35 +00:00
Edin Kadribasic
3c94150191 MFB: Make sure cli install dir is created before trying to install in it. 2002-12-20 10:12:15 +00:00
Edin Kadribasic
ff54f76f71 MFB: Reverted previous patches as suggested by Andi. 2002-12-19 00:13:43 +00:00
Edin Kadribasic
f84aff8f5c Fix for #20539 (patch by Moriyoshi Koizumi). 2002-12-11 10:24:02 +00:00
Melvyn Sopacua
2421e79b60 Fix make install target on Cygwin, bug #20807 2002-12-09 17:02:38 +00:00
Sebastian Bergmann
ba5764ab39 Fix build. 2002-12-09 11:45:46 +00:00
Moriyoshi Koizumi
93ee146d0e Fixed stream leaks 2002-12-08 10:23:50 +00:00
foobar
dd53efc196 - Made the STANDARD_SAPI_MODULE_PROPERTIES be what it says it is. 2002-11-26 05:57:06 +00:00
Andrei Zmievski
e09d62c435 Sort the modules and extensions before printing them when -m switch is used. 2002-11-14 20:32:28 +00:00
Sascha Schumann
46a99e9022 - Remove PHP_DISABLE_CLI
- Streamline ircg build: thttpd-dependent part moved into separate source
  file, so that it can be added to the SAPI-only object list.
2002-11-14 01:09:46 +00:00
Jan Lehnardt
e95c7178cc - be more verbose 2002-11-13 12:41:05 +00:00
Marcus Boerger
cecb9dfc79 Implemented -n switch to skip parsing ini at startup as suggested by Wez.
#The switch 'n' was planned to be used for beautifying....delete n to make
#clear these functions do not have a switch yet.
2002-11-12 20:56:47 +00:00