1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 15:08:16 +02:00
Commit Graph

251 Commits

Author SHA1 Message Date
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
Derick Rethans 87a85db670 - MFB 2003-05-26 18:37:48 +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 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 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
Marcus Boerger c681320471 Make that clear 2003-02-11 20:34:24 +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 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 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 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
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