php-src
php-src copied to clipboard
The PHP Interpreter
### Description Yesterday I upgraded PHP from 8.1.2 to 8.1.3 (all packages from dotdeb.org) Today I got a segfault in phpmyadmin 5.1.1 when trying to get a list of tables....
### Description The following code: ```php
### Description This report applies to DateTime, DateTimeImmutable, DateTimeZone, DateInterval and DatePeriod. Before PHP 8.2, there used to be a way to create a DateTime object from an uninitialized prototype:...
### Description The following code: https://3v4l.org/1kqoo ```php f = 0.0001; $expectedLower = (clone $today) ->setTimezone(new DateTimeZone('UTC')) ->sub($delta); var_dump($expectedLower); ``` Resulted in this output: ``` object(DateTime)#3 (3) { ["date"]=> string(26) "2022-02-24...
### Description The following code: ```php list($width,$height)=getimagesize("test.jpeg"); $src=imagecreatefromjpeg("test.jpeg"); $tmp1=imagecreatetruecolor(500,500); imagecopyresampled($tmp1,$src,0,0,0,0,500,500,$width,$height); imageavif($tmp1,"test.avif","70");
### Description I am trying to implement a Aspect-oriented-programming extension for PHP, but since `std_object_handlers` got the `const` keyword, it seems to be impossible to intercept every `std_object_handlers` instance/object. I...
### Description To recursively iterate over a `SplFixedArray`, to save memory and improve performance. Is this intended, or a bug? https://3v4l.org/ufapQ * `SplFixedArray` (extends `IteratorAggregate` ) * `RecursiveIterator` (extends `Iterator`)....
### Description We are trying to modify the value for `post_max_size` per directory through a `.user.ini`-file running on php-fpm behind an Apache webserver using proxy_fgci_module. As mentioned in [the docs](https://www.php.net/manual/en/ini.core.php#ini.sect.data-handling),...
### Description Event extension cannot be installed under docker. Installation mode: ``` pecl install event docker-php-ext-enable event ``` `PHP Warning: PHP Startup: Unable to load dynamic library 'event' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20200930/event...
### Description PHP 7.4.27 / 8.0.15 / 8.1.3 Apache 2.4.52 OpenBSD 7.0 / amd64 If running any of the above PHP versions under Apache (as module), I noticed that every...