#
0ebf2bdb |
| 26-Sep-2019 |
Nikita Popov |
Convert "Illegal offset type" warnings to exceptions
|
#
0c7124e6 |
| 23-Sep-2019 |
Christoph M. Becker |
Add check_only parameter to get_closure handler `get_closure` handlers are called to check whether an object is callable, and to actually get the closure, respectively. The behavior
Add check_only parameter to get_closure handler `get_closure` handlers are called to check whether an object is callable, and to actually get the closure, respectively. The behavior of the handler might differ for these two cases, particularly the handler may throw in the latter case, but should not in the former. Therefore we add a `check_only` parameter, to be able to distinguish the desired purpose.
show more ...
|
#
6276dd82 |
| 23-Sep-2019 |
Nikita Popov |
Use ZEND_TYPE_IS_SET() when checking for property types Instead of a simple if or 0 comparison. This would no longer work if zend_type is a struct.
|
#
9dfbcd72 |
| 18-Sep-2019 |
Christoph M. Becker |
Fix #78543: is_callable() on FFI\CData throws Exception If `Z_OBJ_HANDLER_P(callable, get_closure)` throws, we must not let the exeception pass to userland, if called through `is_callabl
Fix #78543: is_callable() on FFI\CData throws Exception If `Z_OBJ_HANDLER_P(callable, get_closure)` throws, we must not let the exeception pass to userland, if called through `is_callable()`.
show more ...
|
#
8807889a |
| 23-Aug-2019 |
Nikita Popov |
Fix arginfo leak when using disabled_classes Also remove the hack where scope is set to NULL in order to make free_internal_arg_info work. Instead explicitly call it for class method
Fix arginfo leak when using disabled_classes Also remove the hack where scope is set to NULL in order to make free_internal_arg_info work. Instead explicitly call it for class methods. This fixes the asan build for Zend/tests/bug77494.phpt.
show more ...
|
#
60dca229 |
| 22-Jul-2019 |
Dmitry Stogov |
Initialize static_members_table
|
#
9a833438 |
| 08-Jul-2019 |
Dmitry Stogov |
Delay EG(exception) check on slow path
|
#
36983035 |
| 28-Jun-2019 |
Nikita Popov |
Fix arginfo leak in disable_functions Arginfo is allocated if types are used, we need to free it.
|
Revision tags: php-7.2.19, php-7.3.6, php-7.1.30 |
|
#
61f78de4 |
| 26-May-2019 |
twosee |
Constify some char* arguments or return values of ZEND_API Closes GH-4247.
|
#
8f8fcbbd |
| 27-May-2019 |
Nikita Popov |
Support full variance if autoloading is used Keep track of delayed variance obligations and check them after linking a class is otherwise finished. Obligations may either be unresolv
Support full variance if autoloading is used Keep track of delayed variance obligations and check them after linking a class is otherwise finished. Obligations may either be unresolved method compatibility (because the necessecary classes aren't available yet) or open parent/interface dependencies. The latter occur because we allow the use of not fully linked classes as parents/interfaces now. An important aspect of the implementation is we do not require classes involved in variance checks to be fully linked in order for the class to be fully linked. Because the involved types do have to exist in the class table (as partially linked classes) and we do check these for correct variance, we have the guarantee that either those classes will successfully link lateron or generate an error, but there is no way to actually use them until that point and as such no possibility of violating the variance contract. This is important because it ensures that a class declaration always either errors or will produce an immediately usable class afterwards -- there are no cases where the finalization of the class declaration has to be delayed until a later time, as earlier variants of this patch did. Because variance checks deal with classes in various stages of linking, we need to use a special instanceof implementation that supports this, and also introduce finer-grained flags that tell us which parts have been linked already and which haven't. Class autoloading for variance checks is delayed into a separate stage after the class is otherwise linked and before delayed variance obligations are processed. This separation is needed to handle cases like A extends B extends C, where B is the autoload root, but C is required to check variance. This could end up loading C while the class structure of B is in an inconsistent state.
show more ...
|
Revision tags: php-7.2.19RC1, php-7.3.6RC1, php-7.1.29, php-7.2.18, php-7.3.5, php-7.2.18RC1, php-7.3.5RC1, php-7.2.17, php-7.3.4, php-7.1.28, php-7.3.4RC1, php-7.2.17RC1, php-7.1.27, php-7.3.3, php-7.2.16 |
|
#
a31f4642 |
| 26-Feb-2019 |
Nikita Popov |
Allow exceptions in __toString() RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error excep
Allow exceptions in __toString() RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
show more ...
|
#
ff96f25b |
| 03-Jun-2019 |
Joe Watkins |
Revert "Fix bug #62397 - disable_functions does not work with eval." This reverts commit 050d299364ded5cb7b878bc515aa763c9c623c4b.
|
#
321fe889 |
| 03-Jun-2019 |
Nikita Popov |
Add Z_PARAM_NUMBER and use it for some functions
|
#
8a0965e3 |
| 03-Jun-2019 |
Nikita Popov |
Remove zpp L specifier We don't use this internally anymore, and external usages should be encouraged to move towards 'l'.
|
#
1df9f238 |
| 31-May-2019 |
Dmitry Stogov |
Better hot/cold code splitting
|
#
45a0656e |
| 29-May-2019 |
Nikita Popov |
Remove get() object handler Now that set() is gone, there is little point in keeping get(), as it is essentially just a different way of writing cast_object() now. Closes GH
Remove get() object handler Now that set() is gone, there is little point in keeping get(), as it is essentially just a different way of writing cast_object() now. Closes GH-4202.
show more ...
|
#
e14d7733 |
| 29-May-2019 |
Dmitry Stogov |
Mark "cold" functions
|
#
7821cc3b |
| 29-May-2019 |
Joe Watkins |
disabled functions must not have return type
|
#
e6fac86d |
| 24-May-2019 |
Nikita Popov |
Accept flags argument in zend_lookup_class_ex() Instead of a single boolean, so we have space for extension here.
|
#
050d2993 |
| 28-Apr-2019 |
Benjamin Eberlei |
Fix bug #62397 - disable_functions does not work with eval.
|
#
e9aa0337 |
| 18-Apr-2019 |
Nikita Popov |
Fix more dl() interned string assertions
|
#
a5b7f3bd |
| 18-Apr-2019 |
Nikita Popov |
Fix more dl() interned string assertions
|
#
ed4c2427 |
| 18-Apr-2019 |
Nikita Popov |
Fix dl() module unloading in post deactivate FOREACH_END_DEL() does not call the destructor by itself, we need to explicitly call it. Due to the missing dtor call the functions were
Fix dl() module unloading in post deactivate FOREACH_END_DEL() does not call the destructor by itself, we need to explicitly call it. Due to the missing dtor call the functions were not unregistered early, which resulted in later shutdown segfaults.
show more ...
|
#
ac12cc85 |
| 17-Apr-2019 |
Dmitry Stogov |
Fixed dl() function. It failed in DEBUG build without opcache because of assert during string interning.
|
#
a1b7ccdf |
| 11-Apr-2019 |
Dmitry Stogov |
Fixed bug #77877 (call_user_func() passes $this to satatic methods).
|