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

Problem: kphp2cpp configured only with **-march sandybridge**, but application binary can be executed in KVM. Solution: kphp2cpp must compile resulting binary with same flags as compiled or configured by cmake...

Hi! Please merge this changes. And add unit-tests. I not have it, but code already works fine in production. Function was created by copy-paste method with changing library calls.

Hi! Please merge this changes for json_encode/decode. and add unit-tests. 1. Implemented JSON_PRETTY_PRINT test case: ```php

```php /** * @kphp-generic T * @param class-string $t */ function foo($t) { } foo('int'); ``` Compilation of this code fails with ``` Starting php to cpp transpiling... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compilation...

Consider following example: ```php

Environment: We try to build application for deploying to all Linux-based distros, and for reach this goal we need decrease system dependencies. We already have build with few dependencies (all...

ffi

At the moment, the functions do not process an array of values. **Example:** [Section3.1] var1[]=val_1_1 var1[]=val_1_2 var1[]=val_1_3 This section will skip.

missing functionality

Add [mb_internal_encoding()](https://www.php.net/manual/en/function.mb-internal-encoding.php) function.

missing functionality

# shutdown functions refactoring What's the problem ------------------------- At this time shutdown functions are not called if we get an error in the network context. For example, a timeout or...

bug
refactoring

We need to fix the type for the `&$result` parameter of the [parse_str](https://www.php.net/manual/en/function.parse-str.php) function. Expectant type: `mixed[]` Actual type: `mixed` https://github.com/VKCOM/kphp/blob/20d99bd9b7618aadbc94bc95a025380ef03b4921/builtin-functions/_functions.txt#L631

bug