kphp icon indicating copy to clipboard operation
kphp copied to clipboard

KPHP — a PHP compiler

Results 253 kphp issues
Sort by recently updated
recently updated
newest added

## Information - PHP RFC name: str_contains - PHP RFC link: https://wiki.php.net/rfc/str_contains - Issue: #290 - Added a function from a low priority block :) - Tests written ## Example...

PHP8

Before: ```php var_dump((float) " 0x1"); // float(1) ``` After: ```php var_dump((float) " 0x1"); // float(0) (as in PHP) ```

bug

Previously, using uppercase letters in binary and hexadecimal (`0B10` or `0XAA`) literals resulted in a parsing error.

bug

Simple expressions are now supported: $x instanceof T ? $x->f() : $otherwise => $x instanceof T ? instance_cast($x, 'T')->f() : $otherwise $x instanceof T && $x->predicate() => $x instanceof T...

https://sun9-37.userapi.com/s/v1/ig2/QxnygNlZyl5hjcni3Xij8tS09WPC__LCLiqgxImuSygAhbXYKqkLhJztFhFd1VLWRWDJv-bjMFZp8ejT19kH0JWF.jpg?size=1119x961&quality=96&type=album

Investigate whether we can make a full transition and remove `vk::string_view` implementation completely. If not, replace `vk::string_view` where possible.

Alex: Свич по строке из 0 кейсов (но с дефолтом) выдаёт предупреждение на этапе сборки плюсов. Пример: ``` /.../UserTitle_reflection@@set_as_bool.cpp:9:8: warning: variable ‘v$matched_with_one_case$u4fdd7fa40628ca72_0’ set but not used [-Wunused-but-set-variable] 9 | bool...

Hello, everybody! Problem: I would like to reformat user-defined JSON definition. For this I use decode+encode pair: ```php $outToUser = json_encode( json_decode( $userEnteredJson, true), JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT); ``` but json_encode()...