Commit graph

213 commits

Author SHA1 Message Date
Rasmus Lerdorf
5f64810ebd Still lots more Unicode work to be done here, but this is a start 2009-07-26 16:50:41 +00:00
Jani Taskinen
b10dc00263 - Fixed bug #48802 (printf() returns incorrect outputted length) 2009-07-23 14:54:04 +00:00
Matt Wilmas
e9b382cc2e Added zend_eval_stringl and made create_function(), etc. binary-safe 2009-06-05 18:50:10 +00:00
Hannes Magnusson
142f8ea005 Englanti kielioppi (Jani) 2009-04-09 10:19:15 +00:00
Hannes Magnusson
b9c166f76e Fixed bug#47427 (-s outputs, not displays) 2009-04-09 10:07:24 +00:00
Felipe Pena
865d0f3b09 - Fix ZTS build 2009-04-08 00:14:37 +00:00
Arnaud Le Blanc
5683a60967 Fixed bug #47893 (CLI aborts on non blocking stdout) 2009-04-07 16:10:35 +00:00
Marcus Boerger
d4f5b3f0a9 - This is PHP 6 - if this ... ever gets out 2009-03-10 23:40:06 +00:00
Ilia Alshanetsky
af28e3443f Corrected fix for bug #46844 to only trigger on the 1st line of CLI opened
files.
2009-01-09 17:20:57 +00:00
Marcus Boerger
ebd735786c - Catch exceptions in cli -a 2009-01-02 13:14:17 +00:00
Marcus Boerger
509f9455a0 - WS 2008-12-31 14:15:41 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Arnaud Le Blanc
76e5580b2e Fixed endless loop in cli when ignore_user_abort is on 2008-11-25 03:49:21 +00:00
Felipe Pena
43791516db - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro (again!) 2008-11-17 11:26:25 +00:00
Arnaud Le Blanc
047870a61f MFB: Added header_remove() (chsc at peytz dotdk, Arnaud) 2008-11-13 10:33:08 +00:00
Felipe Pena
e006a89e71 - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:10:13 +00:00
Felipe Pena
916b56d2d9 - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-10-24 16:02:16 +00:00
Antony Dovgal
9eb18c3ccb nuke unused var 2008-08-14 09:46:12 +00:00
Dmitry Stogov
bb15ca0a56 Fixed bug #45779 (regression with shebang lines processing) 2008-08-13 06:17:15 +00:00
Jani Taskinen
bc6a9ad209 [DOC]- Added methods to change/disable --with-config-file-scan-dir=PATH at
[DOC]  startup:
[DOC]
[DOC]  To disable: Override default php.ini by using both -c and -n with
[DOC]              CGI/CLI or set "PHP_INI_SCAN_DIR" environment variable
[DOC]              to an empty string.
[DOC]
[DOC]  To change: Simply set "PHP_INI_SCAN_DIR" environment variable to point
[DOC]             to another path.

- Fixed bug #42604 ("make test" fails with --with-config-file-scan-dir=/some/path)
- Implemented FR #45114 (Option to change --with-config-file-scan-dir)
2008-08-13 00:49:59 +00:00
Antony Dovgal
dba7f154fc fix warnings 2008-07-25 15:05:33 +00:00
Arnaud Le Blanc
6688c798e1 Allow filters to work on INPUT_SERVER in CLI (bug #44779) 2008-07-24 09:11:48 +00:00
Antony Dovgal
55fecd6593 invert the logics - FLAG_FCLOSE -> FLAG_NO_FCLOSE 2008-07-23 11:24:35 +00:00
Felipe Pena
f76da1b96c - Fixed bug #44246 (closedir() accepts a file resource opened by fopen()) 2008-07-22 14:06:17 +00:00
Scott MacVicar
56352d1a2f MFB 5.3: Rest of the changes for re2c merge 2008-03-26 14:46:17 +00:00
Marcus Boerger
bd366b66da - Use sizeof rather than strlen and cleanup 2008-03-25 21:58:03 +00:00
Rasmus Lerdorf
b911467d1d MFB
Here are the signal changes from the 5.3 branch that optimizes signal
handler registration and switches from longjmp to siglongjmp in order
to make signal mask handling consistent across different UNIX operating
systems.
2008-03-19 16:37:49 +00:00
Dmitry Stogov
ea9305c543 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:49 +00:00
Marcus Boerger
8942024d3d - MFB Sync 2008-02-03 17:50:06 +00:00
Dmitry Stogov
3c02d2402d Fixed bug #43968 (Extending internal class causes a crash)
The fix is a workaround for GCC optizer bug.
2008-01-29 20:01:43 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Jani Taskinen
44cbb46246 - Added common getopt implementation to core.
- Added long-option feature to getopt().
- Made getopt() available on win32 systems.
Patch by: David Soria Parra <dsp@php.net>
[DOC]: These changes will be available from 5.3+
2007-10-01 12:32:39 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Stanislav Malyshev
c56929d6f1 remove unneeded variables 2007-08-08 23:56:19 +00:00
Johannes Schlüter
895a9fb212 - Fix build without reflection
# reflection_what is used fby --ri, too
2007-05-06 12:57:27 +00:00
Marcus Boerger
74e6d53ce4 - Fix function signature 2007-05-05 12:46:30 +00:00
Marcus Boerger
87041a3986 - Simplify/use consts 2007-05-05 12:09:21 +00:00
Marcus Boerger
c40640626b - WS/CS 2007-05-04 22:09:30 +00:00
Hannes Magnusson
02af1b4a65 rename --ri core to --ri main
# "the man has spoken"
2007-04-25 09:53:20 +00:00
Hannes Magnusson
64179171f8 Add the ability to display the core ini entries via "php --ri core" 2007-04-23 21:24:54 +00:00
Marcus Boerger
118fe71b72 - Rephrase as suggested by Chris Jones 2007-04-23 20:47:58 +00:00
Marcus Boerger
8e500e7749 - Add 'php --ini' to CLI which returns the INI file/dir configuration 2007-04-23 20:17:19 +00:00
foobar
c225e4a7d8 MFB 2007-04-17 19:48:16 +00:00
Antony Dovgal
30239ea383 check for NULL, then add flag 2007-02-22 10:06:02 +00:00
Antony Dovgal
30dacafa72 implement PHP_STREAM_FLAG_NO_CLOSE and avoid hacks in plain wrapper 2007-02-21 21:56:45 +00:00
Antony Dovgal
2ad6c07ca1 don't call php_module_startup() directly, use startup functions
patch by Andrei Nigmatulin
2007-02-20 19:19:14 +00:00
Marcus Boerger
94292d3e01 - Add --ri/--rextinfo 2007-01-23 20:02:29 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal
03b68981f9 prevent potential leak on error 2006-12-21 00:43:00 +00:00
Antony Dovgal
92ed3d2b4c call sapi_deactivate() & friends on error
fixes leak with `php-cli -n -c ..`
2006-11-24 11:54:48 +00:00