Daniil Gentili
Daniil Gentili
I'm reopening this issue because it really is a pretty important missing feature, used in many mainstream libraries. If classes can be conditinally defined by conditionally including some files, I...
The assert function is missing: https://www.php.net/manual/en/function.assert.php
Closures returned by bindTo cannot be directly called. Source: ```php class a { public static function init() { var_dump("test"); } } (function () { static::init(); })->bindTo(null, a::class)(); ``` Result: ```...
The pack and unpack functions for manipulating binary data are missing: they are extremely useful for a number of reasons, please consider implementing them.
Starting from PHP 8, a number of additional expressions and non-expressions can appear on the rhs of an instanceof expression, including a string (appropriately wrapped in parenthesis).