Commit Graph

170 Commits

Author SHA1 Message Date
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
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
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
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +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
Stanislav Malyshev
50293835bf remove unneeded variables 2007-08-08 23:51:57 +00:00
Antony Dovgal
3285bd834b fix folding 2007-06-04 09:47:54 +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
foobar
75d8d28e71 - Fix a possible leak when multiple -c parameters are used 2007-04-17 19:46:13 +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
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
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
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
Johannes Schlüter
7409ed6403 - MFH: List --rf/--rc/--re only with enabled reflection 2006-02-21 21:15:13 +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
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
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
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
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
Ilia Alshanetsky
a462e687dc Fixed possible memory corruption. 2005-06-21 00:12:35 +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
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
Marcus Boerger
1623537998 - Improved interactive mode of CLI (php -a) 2005-05-07 12:24:18 +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