php-src
php-src copied to clipboard
The PHP Interpreter
### Description A lot of ppl open PR without linking the original issue in the PR body, and Bughub ain’t linking it in the issue page. e.g. [Update utf8-valid flag...
## Description Since PHP 8.5.12, `PDOStatement::fetch()` on a SQL Server `text` or `ntext` column kills the process as soon as the value is longer than about 4 KB: ``` Hard...
### Description The following code: ```php __serialize(); $fusion = $o; $fusion['a.php'] = '
### Description Since GH-20097 (aaed3ccb479), `zend_weakmap_read_dimension()` inserts a missing key for `BP_VAR_W`/`BP_VAR_RW`. With a temporary key, the `FETCH_DIM_W` handler then frees the TMP key, the weakref notification removes the just-inserted...
### Description The following code: ```php documentElement->closest("root"); ``` Resulted in this output: ``` php: ext/dom/parentnode/css_selectors.c:85: lxb_css_selector_list_t *dom_parse_selector(lxb_css_parser_t *, lxb_selectors_t *, const zend_string *, lxb_selectors_opt_t, const dom_object *): Assertion `status ==...
### Description `ZEND_DECLARE_LAMBDA_FUNCTION` caches a stateless (`static fn`) closure in the declaring function's runtime cache and pushes it onto `EG(lambda_cache)`, which is only released at shutdown. When the declaring function...
### Description The compile-time optimization that turns `array_map()` with a first-class callable callback into a foreach loop (`zend_compile_func_array_map()`, introduced by a3576bddc52 / GH-20934) diverges from the runtime `array_map()` in several...
``` ``` Reports a negative value for used_memory.  Image is from a VDS system with opcache.memory_consumption=1GB and several sites. But issue was reproduced within the following environment: - PHP...
### Description The following code: ```php gc) == 1) || ((ht)->u.flags & (1
### Description **Description**: I encountered a heap UAF bug in PHP with commit fb257ee83c405fecf449571bfcd1cc0fb4910336 I built the binary following OSS-Fuzz's guidelines, and the bug was reproduced in `php-fuzz-execute`. ```php