php-src
php-src copied to clipboard
The PHP Interpreter
### Description Hello, We experience seemingly random in-memory corruption of code when deploying new versions of our PHP app on php-fpm 8.1.6 on Linux. Here is a sample error message:...
sodium_memzero() assigns null to its argument without checking the type of a property the reference comes from, so a non-nullable property ends up holding null. ```php class A { public...
### Description Paragraphs in quotes were written with an LLM (Claude), per CONTRIBUTING.md's "LLM usage in GitHub comments". The analysis was checked against the source of the PHP-8.5, PHP-8.6 and...
### Description On Windows x64, version_compare() returns 0 for any two numeric parts larger than 2^31-1. Linux x64 is correct. It looks like the numeric parts go through strtol(), and...
# Description On Windows, `php-cgi.exe` (and `php.exe` with `opcache.enable_cli=1`) occasionally crashes during startup with `0xC0000005` in `php_opcache.dll`, before any script runs. It happens when several processes of the same installation...
### Description Frameless function handlers read a raw `zend_string*` / `HashTable*` out of an earlier argument without taking a reference, then coerce a later argument through a path that can...
### Description The following code: ```php readbuflen` (`main/streams/filter.c:462-464`): ```c if (flushed_size > (stream->readbuflen - stream->writepos)) { /* Grow the buffer */ stream->readbuf = perealloc(stream->readbuf, stream->writepos + flushed_size + stream->chunk_size, stream->is_persistent);...
### Description Since 5ed6625e4c0 (#23143, `%pS` migration of ext/standard), `var_dump()` and `debug_zval_dump()` print the internal name of an anonymous class, including the NUL byte and the defining file path. PHP...
### Description The following code: //SMTP在Windows上无法使用mail函数发邮件,请剔除这个模块 ```php
### Description Consider the following code: ```php class SomeClass { public $a = 1; public $b = 2; public $c = 3; public $d = 4; public $e = 5;...