kphp
kphp copied to clipboard
KPHP — a PHP compiler
Fixing `RuntimeError: Got unexpected Warning: [1688572531] [18051] Warning: Can't allocate 11534392 bytes (out of memory)`
```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
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...
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++...
### 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...