php-src
php-src copied to clipboard
The PHP Interpreter
### Description When opcache has no shared memory backend (`handler_table` is empty), `zend_shared_alloc_startup()` returns `NO_SHM_BACKEND` with `smm_shared_globals` still pointing to its local `tmp_shared_globals`. The other early returns (`FAILED_REATTACHED`, `ALLOC_FALLBACK`) reset...
### Description I call every Monday a cronjob at 00:01. I want known the year and week from last week. ```php format('Y'); $week = (int)$dt->format('W'); // After this, I call...
### Description After updating from PHP 8.1.25 to 8.1.26 our apache24 servers started to crash from time-to-time on graceful restarts (e.g. after midnight log rotation). Here is the core dump:...
### Description Interned strings are never flagged UTF-8 if they are already interned and were not flagged on internation. Also update UTF-8 flag after checking for already interned strings. Related...
### Description This is a large WordPress website running some commonly available community plugins. The site was working fine on PHP 7.4 but since upgrading to 8.2.6 and then subsequent...
### Description The test `ext/sqlite3/tests/sqlite3_bind_bug68849.phpt` fail on x86 arch (32-bits) Previous build (8.2.10RC1) passed but sqlite was 3.42.0 (current is 3.43.0) The same test failed building PHP 8.3RC1 so very...
### Description **Prepared with an AI assistant (Claude).** The investigation, builds and test runs were executed for real on our servers and the numbers below are the actual outputs; the...
### Description The following code: ```php $value; } } $c = new C; $ao = new ArrayObject($c); unset($ao['prop']); var_dump($c->prop); ``` Resulted in this output: ``` php: Zend/zend_object_handlers.c:838: zval *zend_std_read_property(zend_object *,...
PHP 8.5.12 CLI NTS, Homebrew macOS. Minimal reproduction, no framework: ```php try { $pdo = new PDO('sqlite::memory:'); $pdo->query('select * from missing'); } catch (PDOException $e) { $copy = unserialize(serialize($e)); var_dump($e->getCode(),...
### Description The following code: ```php 1, "" => 1, " " => 1, "azure" => 1, "AZURE_CLOUD" => 1, ]; return $validEnvs[strtolower(trim($env))] ?? 1; } } AzureAuthHelper::getAzureEnvironment("unknown"); ``` Resulted...