kphp
kphp copied to clipboard
KPHP — a PHP compiler
При написании библиотек важно иметь возможность в CI проверить, что они полностью компилируются. Например флагом компилятора с указанием директории в которой весь код будет считаться используемым
The current serialization function independently determines the type of message pack to which the data needs to be brought. In some cases, this functionality is not enough. For example, to...
Пример: в родителе метод protected, в наследнике public: ```php abstract class AbstractFindActionEventListener implements EventListenerInterface { public function handle(EventInterface $event): void { $findActionEvent = instance_cast($event, FindActionEvent::class); if ($findActionEvent === null) {...
[headers_sent](https://www.php.net/manual/en/function.headers-sent.php) function is missing from kphp and thou cannot be compiled
1. Starting from version 5.4 PHP supports predefined constant `ENT_HTML5` used as a flag for `htmlspecialchars`. This constant is currently unsupported by the compiler, given the following error: `Compilation error...
I am trying to run git commands from kphp, but it haven't proc_open and similar functions. Till I am using FFI to connecting functions capable of running console commands, but...
https://www.php.net/manual/ru/function.stream-get-contents.php https://www.php.net/manual/ru/function.stream-get-meta-data.php
Add [str_getcsv()](https://www.php.net/manual/en/function.str-getcsv.php) function support in KPHP, pls.