Felipe Pena
86ed2eeb5d
- Avoid zend_do_ticks() call for each statement in parsing
2011-06-12 01:43:10 +00:00
Felipe Pena
927bf09c29
- Year++
2011-01-01 02:19:59 +00:00
Dmitry Stogov
cac310d87e
Fixed bug #52001 (Memory allocation problems after using variable variables)
2010-06-10 09:13:22 +00:00
Sebastian Bergmann
d2281d1dff
sed -i "s#1998-2009#1998-2010#g" **/*.c **/*.h **/*.php
2010-01-05 20:46:53 +00:00
Brian Shire
cb7a21a42b
MFH: Make pass_two visible to extensions with ZEND_API (required for optimizer).
2009-06-05 23:20:59 +00:00
Christian Seiler
c6d89bd4a8
[DOC] Remove $this support in closures for PHP 5.3 beta 1
...
- Implementation notes here:
http://wiki.php.net/rfc/closures/removal-of-this
2009-01-26 22:54:34 +00:00
Dmitry Stogov
666bf10d1a
Removed wrong warning message
2009-01-20 13:21:52 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Dmitry Stogov
ea45b713c8
Added support for namespaces with brackets. (Greg)
2008-11-25 09:56:32 +00:00
Stanislav Malyshev
1b4134c07b
Namespace resolution streamlining patch
...
[DOC] new resolution rules should be documented soon
2008-11-11 19:45:29 +00:00
Marcus Boerger
7126de4912
- Next step in namespaces, using / as namespace separator.
2008-11-04 15:58:55 +00:00
Matt Wilmas
22a5aea161
MFH: - Updated unary_op_type typedef with TSRMLS_DC
...
- Added binary_op_type typedef
- Added missing ZEND_BOOL_XOR to get_binary_op()
2008-08-29 18:12:47 +00:00
Felipe Pena
cf7384aa40
- MFH: Constness (Added const qualifier to several function parameters)
2008-08-12 17:20:25 +00:00
Moriyoshi Koizumi
a28497d6e5
- Fix __halt_compiler() weirdness with zend-mulibyte enabled
2008-07-28 05:59:17 +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
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
ed2d3e4c7e
Substitute persistent constants by their values at compile time. (Matt)
2008-07-25 04:54:08 +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
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
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
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
Felipe Pena
f8f26de7d5
Fix for segfault on 64bit platform
2008-03-29 11:52:10 +00:00
Felipe Pena
f66f55edc5
MFH: Implemented "jump label" operator (limited "goto")
...
[DOC]
2008-03-28 14:35:01 +00:00
Felipe Pena
9e2894f5ff
MFH:
...
- Renamed zend_do_fetch_class_name() to zend_do_build_full_name() (It is not used only for classes)
- Moved zend_resolve_class_name prototype to zend_compile.h
2008-03-25 18:08:37 +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
00e236aa80
- Fix build
2008-03-16 21:42:42 +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
0f2247ae94
Fixed bug #44414 (Incomplete reporting about abstract methods)
2008-03-12 09:46:42 +00:00
Stanislav Malyshev
fd597dce1b
[DOC] Add compile-time __DIR__ constant which implements dirname(__FILE__)
2008-02-12 00:21:15 +00:00
Dmitry Stogov
0b6825102d
Changed EG(argument_stack) implementation.
2008-01-24 09:41:39 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Dmitry Stogov
64e8f22355
Allowed import of global classes "use ::GlobalClassName;"
2007-12-13 10:02:03 +00:00
Dmitry Stogov
648fbe9d58
Fixed bug #43128 (Very long class name causes segfault)
2007-11-22 13:27:13 +00:00
Johannes Schlüter
45f6b4ce2f
- MFH Improved version of ternary shortcut (Marcus)
2007-11-21 09:41:35 +00:00
Dmitry Stogov
9f230a0d79
Added support for "namespace::" prefix that is resolved to current namespace name.
2007-11-20 08:53:02 +00:00
Dmitry Stogov
b7d87bebc9
T_IMPORT -> T_USE
2007-11-07 09:13:50 +00:00
Dmitry Stogov
1530fe99c8
Fixed variations of bug #35163
2007-10-23 12:52:40 +00:00
Dmitry Stogov
eb0c56ada1
Fixed bug #42820 (defined() on constant with namespace prefixes tries to load class).
2007-10-03 10:33:02 +00:00
Dmitry Stogov
b20ed0d2e0
Added support for __callstatic() magic method. (Sara)
2007-09-29 08:52:40 +00:00
Dmitry Stogov
166266df68
Added support for Late Static Binding. (Dmitry, Etienne Kneuss)
2007-09-29 07:28:34 +00:00
Dmitry Stogov
f32ffe9b43
Namespaces
2007-09-28 19:52:53 +00:00
Dmitry Stogov
6c810b0d4c
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:00:48 +00:00
Dmitry Stogov
80d2409fd8
Improved compilation of heredocs and interpolated strings. (Matt, Dmitry)
2007-05-18 13:12:05 +00:00
Ilia Alshanetsky
17c0c49a54
Addres limitation of __HALT_COMPILER() that allowed only one instance
...
per request.
# Patch by Greg Beaver
2007-04-04 00:42:42 +00:00
Dmitry Stogov
0291ad5fa6
Fixed bug #40236 (php -a function allocation eats memory)
2007-02-15 10:38:28 +00:00
Dmitry Stogov
e470e22e20
- Fixed bug #35106 (nested foreach fails when array variable has a reference).
...
- Fixed bug #36214 (__get method works properly only when conditional operator is used).
- Fixed bug #39449 (Overloaded array properties do not work correctly).
- Fixed bug #39990 (Cannot "foreach" over overloaded properties).
2007-01-10 15:58:08 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Dmitry Stogov
c3272ab020
Fixed bug #38808 ("maybe ref" issue for current() and others)
2006-09-26 10:30:51 +00:00