Felipe Pena
85ab423565
- MFH: Removed some TSRMLS_FETCH()s
2008-08-15 19:47:33 +00:00
Etienne Kneuss
f90255c66b
MFH: Handlerify get_closure
2008-08-14 21:36:56 +00:00
Marcus Boerger
32f9d0e180
- MFH Improve exception linking
2008-08-14 10:24:52 +00:00
Dmitry Stogov
1ff61ab8a4
Fixed bug #45805 (Crach on throwing exception from error handler)
2008-08-13 07:21:30 +00:00
Marcus Boerger
3f7a4b7e90
- MFH error handling, now with save, replace, restore
2008-08-08 17:47:31 +00:00
Dmitry Stogov
478acfd8b4
. Added support for using static HEREDOCs to initialize static variables and class members or constants. (Matt)
...
. Improved syntax highlighting and consistency for variables in double-quoted strings and literal text in HEREDOCs and backticks. (Matt)
. Optimized interpolated strings to use one less opcode. (Matt)
2008-07-26 15:30:28 +00:00
Dmitry Stogov
4f81a0c358
Fixed crashes and memory leak for objects with NULL write_property/has_property/unset_property handlers
2008-07-26 14:08:11 +00:00
Dmitry Stogov
af05ce0af6
Fixed is_callable/call_user_func mess that had done different things for very similar arguments e.g. array("A","B") and "A::B"
2008-07-26 13:14:04 +00:00
Dmitry Stogov
44325e6473
Fixed bug #45178 (memory corruption on assignment result of "new" by reference)
2008-07-24 11:47:51 +00:00
Dmitry Stogov
feb8580166
LSB parent/self forwarding
2008-07-24 09:42:18 +00:00
Dmitry Stogov
0fa7fedfde
Fixed is_callable() to support closures and return appropriate function name
2008-07-14 12:18:23 +00:00
Dmitry Stogov
d5ef2f466c
Added support for lambda functions and closures
2008-07-14 09:49:03 +00:00
Dmitry Stogov
76a9a42ee2
- Removed direct executor recursion.
...
- Use fastcall calling convention in executor on x86.
2008-06-11 13:18:41 +00:00
Felipe Pena
cc23d3bade
- Fixed bug #45089 (__callStatic $name case sensitivity)
2008-06-03 18:11:12 +00:00
Dmitry Stogov
a6ec1850e0
MFH: small CSE optimizations
2008-05-16 14:34:31 +00:00
Dmitry Stogov
af1ed80274
Fixed bug #44952 (isset() does not checks correctly variable variable)
2008-05-12 09:09:05 +00:00
Dmitry Stogov
5521912b15
Use IS_CV for dirrent access to $this variable
2008-05-07 12:04:39 +00:00
Dmitry Stogov
10aa1146ab
Fixed possible memory leak
2008-05-06 16:59:38 +00:00
Dmitry Stogov
1b317f1526
- Use ZEND_FREE() opcode instead of ZEND_SWITCH_FREE(IS_TMP_VAR)
...
- Fixed bug #44913 (Segfault when using return in combination with nested loops
and continue 2)
2008-05-05 11:03:35 +00:00
Dmitry Stogov
3adf158d79
IS_CONST operands are always have is_ref==1 and refcount==2, so we can eliminate unnecessary checks at specialization/compilation stage
2008-04-30 10:44:08 +00:00
Dmitry Stogov
2ecf4bb0a7
Lazy EG(active_symbol_table) initialization
2008-04-29 08:15:20 +00:00
Dmitry Stogov
8fac72574d
Optimized handlers for ZEND_RECV and ZEND_RECV_INIT opocdes
2008-04-24 15:45:46 +00:00
Dmitry Stogov
e4213bedb8
Optimized function call helper
2008-04-21 10:14:20 +00:00
Dmitry Stogov
d9dd1b9e14
Optimized ZEND_RETURN opcode to not allocate and copy return value if it is not
...
used.
2008-04-11 09:43:28 +00:00
Felipe Pena
f66f55edc5
MFH: Implemented "jump label" operator (limited "goto")
...
[DOC]
2008-03-28 14:35:01 +00:00
Felipe Pena
2b10c53ae1
MFH: Dropped zend.ze1_compatibility_mode
...
[DOC]
2008-03-18 14:10:45 +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
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
Dmitry Stogov
be8daf1f47
Optimized ZEND_FETCH_CLASS + ZEND_ADD_INTERFACE into single ZEND_ADD_INTERFACE opcode
2008-03-12 10:32:12 +00:00
Dmitry Stogov
ab232458c7
Optimized require_once() and include_once() by eliminationg open() syscall on second usage.
2008-03-05 13:34:12 +00:00
Dmitry Stogov
430e54d457
Fixed shared memory corruption of opcode caches
2008-03-04 11:43:51 +00:00
Dmitry Stogov
8365e71cb9
Fixed wrong result of cascading assignment to string offset
...
Fixed memory corruption on cascading assignment of IS_TMP_VAR into string offset
Fixed opcode caches shared memory corruption on cascading assignment of IS_CONST
into string offset
2008-03-04 10:06:52 +00:00
Marcus Boerger
d3e5026564
- MFH Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus)
...
[DOC] Finally added deprecation messages
2008-02-23 17:06:22 +00:00
Dmitry Stogov
8c32f99c25
Fixed bug #44184 (Double free of loop-variable on exception)
2008-02-20 12:05:57 +00:00
Hannes Magnusson
86c9b5e46c
Fix segfaults when calling "ctors statically"
2008-02-11 15:46:10 +00:00
Marcus Boerger
da5b979f88
- MFH Add comment that explains why we need E_ERROR in those cases
2008-02-02 15:48:04 +00:00
Marcus Boerger
95a3cccf5f
- Fix flag handling in message generation
2008-02-02 13:56:59 +00:00
Dmitry Stogov
d90ebc65a6
Fixed comilation warnings
2008-01-24 18:07:45 +00:00
Dmitry Stogov
0b6825102d
Changed EG(argument_stack) implementation.
2008-01-24 09:41:39 +00:00
Dmitry Stogov
07000cc2ba
Fixed error message
2008-01-24 08:51:38 +00:00
Dmitry Stogov
0095544c4d
Additional executor specialization
2008-01-23 17:55:55 +00:00
Dmitry Stogov
71592cec06
Added garbage collector
2008-01-22 09:27:48 +00:00
Dmitry Stogov
48379d53e6
Eliminate unnecessary checks for INC/DEC IS_CV
2008-01-21 14:22:59 +00:00
Dmitry Stogov
6be997dca9
Fixed unspecialized executor
2008-01-11 10:08:49 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Dmitry Stogov
f817a1ce6a
executor optimization
2007-12-14 14:14:50 +00:00
Dmitry Stogov
6484b3c458
Fixed bug #43344 (Wrong error message for undefined namespace constant)
2007-12-07 17:11:24 +00:00
Dmitry Stogov
ea0a1c09e9
Speed-up of ZEND_DO_FCALL and ZEND_INIT_FCALL_BY_NAME by lowercasing and calculating hash values at compile time.
2007-11-22 09:02:55 +00:00
Dmitry Stogov
e0ae3d22c1
Safe exit from executor()
2007-11-21 12:28:13 +00:00
Johannes Schlüter
45f6b4ce2f
- MFH Improved version of ternary shortcut (Marcus)
2007-11-21 09:41:35 +00:00