#
c58b131e |
| 27-Apr-2010 |
Dmitry Stogov |
- Reimplemented ZEND_INIT_FCALL_BY_NAME and ZEND_INIT_NS_FCALL_BY_NAME to use literals instead of additional operands - Optimized access to global constants
|
#
08b9fdc8 |
| 24-Apr-2010 |
David Soria Parra |
Add DTrace probes
|
#
f06d839e |
| 23-Apr-2010 |
Dmitry Stogov |
Use fast class fetch function
|
#
cd6415f1 |
| 22-Apr-2010 |
Stefan Marr |
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more dis
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
show more ...
|
#
e87d7200 |
| 22-Apr-2010 |
Dmitry Stogov |
Optimized access to global constants using values with pre-calculated hash_values from litersls table
|
#
ac181e07 |
| 22-Apr-2010 |
Felipe Pena |
- Removed unused variables
|
#
fb9d95e5 |
| 22-Apr-2010 |
Dmitry Stogov |
ZEND_RETURN is splitted into two new instructions ZEND_RETURN and ZEND_RETURN_BY_REF
|
#
453b49ed |
| 20-Apr-2010 |
Dmitry Stogov |
Added a number of small performance tweaks and optimizations . ZEND_RECV now always has IS_CV as its result . ZEND_CATCH now has to be used only with constant class names . ZEND_FET
Added a number of small performance tweaks and optimizations . ZEND_RECV now always has IS_CV as its result . ZEND_CATCH now has to be used only with constant class names . ZEND_FETCH_DIM_? may fetch array and dimension operans in a different order
show more ...
|
#
dd5c478b |
| 20-Apr-2010 |
Dmitry Stogov |
Added concept of interned strings. All strings constants known at compile time are allocated in a single copy and never changed.
|
#
94dd8372 |
| 20-Apr-2010 |
Dmitry Stogov |
Changed the structure of op_array.opcodes. The constant values are moved from opcode operands into a separate literal table
|
#
c93a4f19 |
| 19-Apr-2010 |
Stanislav Malyshev |
restore $this support for closures to its former glory
|
Revision tags: php-5.3.2, php-5.2.13, php-5.3.2RC3, php-5.3.2RC2, php-5.2.13RC2, php-5.2.13RC1 |
|
#
d2281d1d |
| 05-Jan-2010 |
Sebastian Bergmann |
sed -i "s#1998-2009#1998-2010#g" **/*.c **/*.h **/*.php
|
Revision tags: php-5.3.2RC1, php-5.2.12, php-5.2.12RC4 |
|
#
6ab5f53d |
| 07-Dec-2009 |
Dmitry Stogov |
Fixed bug #49866 (Making reference on string offsets crashes PHP)
|
#
7a96fdff |
| 07-Dec-2009 |
Dmitry Stogov |
Fixed bug #50351 (performance regression handling objects, ten times slower in 5.3 than in 5.2. foreach statement should not initiate GC)
|
Revision tags: php-5.2.12RC3, php-5.2.12RC2 |
|
#
bb179ad1 |
| 24-Nov-2009 |
Felipe Pena |
- Fixed bug #50255 (isset() and empty() silently casts array to object)
|
Revision tags: php-5.3.1, php-5.3.1RC4, php-5.2.12RC1, php-5.3.1RC3 |
|
#
779ce8fd |
| 01-Nov-2009 |
Felipe Pena |
- Fixed bug #49908 (throwing exception in __autoload crashes when interface is not defined)
|
Revision tags: php-5.3.1RC2, oci8-1.4.0 |
|
#
c36b27db |
| 21-Sep-2009 |
Dmitry Stogov |
Fixed memleak in tests/lang/engine_assignExecutionOrder_001.phpt
|
Revision tags: php-5.2.11, php-5.2.11RC3, php-5.3.1RC1 |
|
#
4016bfcd |
| 03-Sep-2009 |
Dmitry Stogov |
Fixed bug #46074 (Bus error during running PHP CLI under IRIX 6.5.30)
|
Revision tags: php-5.2.11RC2 |
|
#
d6ba6c69 |
| 18-Aug-2009 |
Stanislav Malyshev |
fix crash when unexpectedly passed by-ref parameter is modified
|
#
f1ab855c |
| 18-Aug-2009 |
Dmitry Stogov |
Fixed ability to call user functions from user opcodes without recursion
|
#
f694c09a |
| 17-Aug-2009 |
Dmitry Stogov |
Fixed bug #49269 (Ternary operator fails on Iterator object when used inside foreach declaration). (Etienne, Dmitry)
|
Revision tags: php-5.2.11RC1 |
|
#
ff766c1d |
| 28-Jul-2009 |
Dmitry Stogov |
Fixed bug #48912 (Namespace causes unexpected strict behaviour with extract())
|
Revision tags: php-5.3.0, php-5.3.0RC4, php-5.2.10, php-5.2.10RC2, php-5.3.0RC3 |
|
#
2462fce2 |
| 07-Jun-2009 |
Matt Wilmas |
MFH: Changed error messages to use "cannot" instead of "can not" (meaning "also can")
|
#
85b93278 |
| 05-Jun-2009 |
Arnaud Le Blanc |
MFH: better fix for #48409 , #48428 , #48228
|
#
b907aa43 |
| 04-Jun-2009 |
Matt Wilmas |
MFH: Restored double->long conversion behavior to that of PHP 5.2 (on most platforms) and prior: * Out-of-range numbers overflow/preserve least significant bits (no LONG_MAX/MIN limit)
MFH: Restored double->long conversion behavior to that of PHP 5.2 (on most platforms) and prior: * Out-of-range numbers overflow/preserve least significant bits (no LONG_MAX/MIN limit) * See bug #42868 (presumably-rare platform with different results in 5.2) * On 32-bit platforms with 64-bit long type, a zend_long64 cast has been added, otherwise it's the same as 5.2 * Use this conversion method everywhere instead of some plain (long) casts Added 'L' parameter parsing specifier to ensure a LONG_MAX/MIN limit: * Essentially what 5.3's new conversion was doing in most cases * Functions with "limit" or "length" type params could be updated to use this, and prevent confusing overflow behavior with huge numbers (*also* in 5.2) - See bug #47854, for example; or even #42868 again # Test updates coming
show more ...
|