Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Fixed reference-counting in zend_parse_arg_str_weak() | Dmitry Stogov | 2018-07-06 | 1 | -4/+5 | |
| | | ||||||
* | | Avoid useless checks in object_init() | Dmitry Stogov | 2018-07-06 | 1 | -2/+3 | |
| | | ||||||
* | | Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized ↵ | Dmitry Stogov | 2018-07-04 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | destructors. zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places. Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors. | |||||
* | | Avoid string comparisons for magic methods (all magic methods start with "__") | Dmitry Stogov | 2018-07-02 | 1 | -0/+7 | |
| | | ||||||
* | | Add zend_update_static_property_ex API | Nikita Popov | 2018-06-29 | 1 | -26/+21 | |
| | | | | | | | | | | And cleanup the implementation to perform a normal by-value assignment. | |||||
* | | Add zend_read_static_property_ex API | Nikita Popov | 2018-06-29 | 1 | -4/+11 | |
| | | | | | | | | For symmetry with zend_read_property_ex. | |||||
* | | Removed INIT_OVERLOADED_CLASS... macros | Dmitry Stogov | 2018-06-29 | 1 | -1/+1 | |
| | | ||||||
* | | Fixed ZTS race condition (zend_class_entry->ce_flags of internal classes ↵ | Dmitry Stogov | 2018-06-27 | 1 | -52/+28 | |
| | | | | | | | | must not be modified, because internal class enties are shared between threads) | |||||
* | | Lazy function copying from op_cache SHM into process memory | Dmitry Stogov | 2018-06-25 | 1 | -6/+7 | |
| | | ||||||
* | | Micro-optimization | Dmitry Stogov | 2018-06-25 | 1 | -24/+14 | |
| | | ||||||
* | | Fixed bug #76509 | Nikita Popov | 2018-06-25 | 1 | -13/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | In PHP static properties are shared between inheriting classes, unless they are explicitly overwritten. However, because this functionality was implemented using reference, it was possible to break the implementation by reassigning the static property reference. This is fixed by switching the implementation from using references to using INDIRECTs, which cannot be affected by userland code. | |||||
* | | Removed "dead" code (zend_hash_update() never fails) | Dmitry Stogov | 2018-06-01 | 1 | -37/+44 | |
| | | ||||||
* | | Removed useless zval_ptr_dtor() | Dmitry Stogov | 2018-05-29 | 1 | -4/+0 | |
| | | ||||||
* | | Use zend_string_release_ex() instread of zend_string_release() in places, ↵ | Dmitry Stogov | 2018-05-28 | 1 | -18/+18 | |
| | | | | | | | | where we sure about string persistence. | |||||
* | | Merge branch 'PHP-7.2' | Anatol Belski | 2018-05-20 | 1 | -0/+1 | |
|\ \ | |/ | | | | | | | * PHP-7.2: Fixed bug #76337 | |||||
| * | Fixed bug #76337 | xKhorasan | 2018-05-20 | 1 | -0/+1 | |
| | | ||||||
* | | Avoid useless checks, using zend_string_efree(), in cases where the string ↵ | Dmitry Stogov | 2018-05-08 | 1 | -9/+9 | |
| | | | | | | | | is known to be a temporary allocated zend_string. | |||||
* | | zend_is_callable() improvement | Dmitry Stogov | 2018-05-03 | 1 | -31/+16 | |
| | | ||||||
* | | Merge branch 'PHP-7.2' | Nikita Popov | 2018-04-26 | 1 | -0/+1 | |
|\ \ | |/ | ||||||
| * | Merge branch 'PHP-7.1' into PHP-7.2 | Nikita Popov | 2018-04-26 | 1 | -0/+1 | |
| |\ | ||||||
| | * | Fix memory leak in zend_disable_class() | shiguangqi2008@gmail.com | 2018-04-26 | 1 | -0/+1 | |
| | | | ||||||
| | * | year++ | Xinchen Hui | 2018-01-02 | 1 | -1/+1 | |
| | | | ||||||
| * | | year++ | Xinchen Hui | 2018-01-02 | 1 | -1/+1 | |
| | | | ||||||
* | | | Add is_countable function | Gabriel Caruso | 2018-03-11 | 1 | -0/+17 | |
| | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/is-countable | |||||
* | | | Improved ZPP to reduce amount of generated code. | Dmitry Stogov | 2018-02-16 | 1 | -17/+115 | |
| | | | ||||||
* | | | Use bool instead of boolean while throwing a type error | Gabriel Caruso | 2018-02-04 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PHP requires boolean typehints to be written "bool" and disallows "boolean" as an alias. This changes the error messages to match the actual type name and avoids confusing messages like "must be of type boolean, boolean given". This a followup to ce1d69a1f6dcf15d43029301059c25e5bc09a577, which implements the same change for integer->int. | |||||
* | | | Use int instead of integer in type errors | Gabriel Caruso | 2018-02-04 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | | PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given". | |||||
* | | | A cheaper way to reset type flags. | Dmitry Stogov | 2018-01-17 | 1 | -1/+1 | |
| | | | ||||||
* | | | cleanup | Dmitry Stogov | 2018-01-10 | 1 | -3/+0 | |
| | | | ||||||
* | | | Trailing whitespaces | Gabriel Caruso | 2018-01-03 | 1 | -5/+5 | |
| | | | | | | | | | | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com> | |||||
* | | | year++ | Xinchen Hui | 2018-01-02 | 1 | -1/+1 | |
| | | | ||||||
* | | | zend_fcall_info_cache.initialized is removed (zend_fcall_info_cache is ↵ | Dmitry Stogov | 2017-12-27 | 1 | -6/+2 | |
| | | | | | | | | | | | | initialized if zend_fcall_info_cache.function_handler is set). | |||||
* | | | Use zend_hash_find() instead of zend_hash_find_ptr() to avoid double check | Dmitry Stogov | 2017-12-27 | 1 | -10/+19 | |
| | | | ||||||
* | | | Add _IS_NUMBER as cast_object() target type | Nikita Popov | 2017-12-26 | 1 | -0/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | convert_scalar_to_number() will now call cast_object() with an _IS_NUMBER argument, in which case the cast handler should return either an integer or floating point number, whichever is more appropriate. Previously convert_scalar_to_number() unconditionally converted objects to integers instead. Fixes bug #53033. Fixes bug #54973. Fixes bug #73108. | |||||
* | | | Merge branch 'PHP-7.2' | Nikita Popov | 2017-12-13 | 1 | -2/+2 | |
|\ \ \ | |/ / | ||||||
| * | | Merge branch 'PHP-7.1' into PHP-7.2 | Nikita Popov | 2017-12-13 | 1 | -2/+2 | |
| |\ \ | | |/ | ||||||
| | * | Fix copy-and-paste bugs | Levi Morrison | 2017-12-13 | 1 | -2/+2 | |
| | | | ||||||
* | | | Cleanup type conversion | Dmitry Stogov | 2017-12-07 | 1 | -1/+1 | |
| | | | ||||||
* | | | Only functions of temporary modules have to be unregistered here | Dmitry Stogov | 2017-11-30 | 1 | -1/+1 | |
| | | | ||||||
* | | | Use zend_string_tolower() where it's possible (to avoid reallocations). | Dmitry Stogov | 2017-11-30 | 1 | -4/+3 | |
| | | | | | | | | | | | | Allow zend_string_tolower_ex() to create parsistent strings | |||||
* | | | Make sure string property/class const values are interned | Nikita Popov | 2017-11-25 | 1 | -0/+18 | |
| | | | | | | | | | | | | | | | This was done for user-definde class constant values, however this is also important for properties and internal classes. | |||||
* | | | RC manipulation cleanup 2 | Xinchen Hui | 2017-11-02 | 1 | -14/+5 | |
| | | | ||||||
* | | | Remove zend_get_parameters(_ex) APIs | Nikita Popov | 2017-10-30 | 1 | -61/+0 | |
| | | | | | | | | | | | | | | | | | | | | | zend_get_parameters_ex() has been marked as deprecated for a long time already. What zend_get_paramers() does is even more questionable under PHP7. Both functions are obsoleted by the ZPP mechanism, so I'm dropping them. | |||||
* | | | Prevent reference-counting on persistent zvals (internal constants, default ↵ | Dmitry Stogov | 2017-10-30 | 1 | -21/+28 | |
| | | | | | | | | | | | | | | | | | | | | | properties and constants of internal classes). New macro ZVAL_COPY_OR_DUP() is used perform duplication, if necessary. This should eliminate related race-coditions in ZTS build and prevent reference-counting bugs after unclean shutdown. | |||||
* | | | Extend zend_register_class_alias_ex() with additional argument to allow ↵ | Dmitry Stogov | 2017-10-27 | 1 | -3/+3 | |
| | | | | | | | | | | | | creating persistent or per-request aliases | |||||
* | | | Extend zend_string API to avoid reallocation in zend_string_init_interned() | Dmitry Stogov | 2017-10-19 | 1 | -4/+7 | |
| | | | ||||||
* | | | Always use IS_CONSTANT_AST (IS_CONSTANT is removed). | Dmitry Stogov | 2017-10-10 | 1 | -5/+5 | |
| | | | ||||||
* | | | Merge branch 'PHP-7.2' | Joe Watkins | 2017-09-27 | 1 | -3/+6 | |
|\ \ \ | |/ / | | | | | | | | | | * PHP-7.2: Fixed #75220 - Segfault when calling is_callable on parent | |||||
| * | | Merge branch 'PHP-7.1' into PHP-7.2 | Joe Watkins | 2017-09-27 | 1 | -3/+6 | |
| |\ \ | | |/ | | | | | | | | | | * PHP-7.1: Fixed #75220 - Segfault when calling is_callable on parent | |||||
| | * | Merge branch 'PHP-7.0' into PHP-7.1 | Joe Watkins | 2017-09-27 | 1 | -3/+6 | |
| | |\ | | | | | | | | | | | | | | | | | * PHP-7.0: Fixed #75220 - Segfault when calling is_callable on parent |