Daniil Gentili

Results 119 issues of 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...

php-capability

The assert function is missing: https://www.php.net/manual/en/function.assert.php

feature
php-capability

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: ```...

bug

The pack and unpack functions for manipulating binary data are missing: they are extremely useful for a number of reasons, please consider implementing them.

bug
php-capability

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).