kphp
kphp copied to clipboard
KPHP — a PHP compiler
See: https://www.php.net/manual/en/ini.core.php#ini.disable-functions
Fixed `catch` location detection. Added errors for unimplemented features and tests: - `finally` syntax - `readonly` classes syntax - `first class callable` syntax - `intersection types` - `explicit octal integer...
```php
PHP 7.x added a lot of different things and changed a lot of behaviors. This issue is tracking the status of PHP 7 implementation in KPHP. The following emoji will...
Depends on #764. ## Problem Given there are two ways to cast a variable to some type: * For primitive types there's `(T)$v`, where `T` is a primitive type. *...
I'm running on an M1 MacBook Pro. Just tried setting up and using the [sample](https://vkcom.github.io/kphp/kphp-basics/compile-sample-script.html) script to compile and `kphp` just comes back with "Illegal instruction" I haven't come across...
Sometimes wrapping a code with `fork()` may produce a compiler error that asks to "simplify" code inside the forked function. It would be nice to have an annotation like `@kphp-forkable`...
Previously we had different constant objects' name (of the same object) on each build