kphp icon indicating copy to clipboard operation
kphp copied to clipboard

KPHP — a PHP compiler

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

Fixing `RuntimeError: Got unexpected Warning: [1688572531] [18051] Warning: Can't allocate 11534392 bytes (out of memory)`

small fix

```c++ parse_option("runtime-config", required_argument, 2032, "JSON file path that will be available at runtime as 'mixed' via 'kphp_runtime_config()"); ``` Why `kphp_runtime_config`? As a result, we chose `kphp_get_runtime_config` :c See https://github.com/VKCOM/kphp/pull/667

documentation
small fix

Implementation of https://wiki.php.net/rfc/named_params

PHP8

The signal handlers in `namespace kphp_runtime_signal_handlers` may work incorrectly in some cases. Here are a few topics how it should works - All `global variables` that used in handlers should...

bug
runtime

Hi. According to multiple tests ([Clang](https://llvm.org/docs/HowToBuildWithPGO.html#introduction), [Rustc](https://blog.rust-lang.org/inside-rust/2020/11/11/exploring-pgo-for-the-rust-compiler.html), [GCC](https://github.com/NixOS/nixpkgs/pull/112928#issuecomment-778508138)), profile guided optimization (PGO) helps with optimizing performance for compilers. Did you try to optimize kphp with PGO? Would be nice to...

The old PHP->C++ translation schema generated a h/cpp file per every PHP function (same for the methods). There are benefits to that approach, but it results in a slower g++...

optimization

Added test previously led to failed assertion

bug
small fix

### Problem KPHP compiled program in CLI/--once modes do not handle SIGTERM signal properly: * after first SIGTERM nothing happens for indefinite time * after second SIGTERM application exits but...