php-src
php-src copied to clipboard
The PHP Interpreter
Exceptions thrown during yield operation fall through the generator instead of being handled within
### Description The following code: ```php
### Description The following code: ```php setFlags( SplFileObject::READ_CSV | SplFileObject::READ_AHEAD | SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE ); $splFileObject->seek(0); $splFileObject->key(); // 0 Returns as expected $splFileObject->seek(1); $splFileObject->key(); // 1 Returns as expected $splFileObject->seek(2);...
### Description The following code: https://3v4l.org/RHFfI#v8.1.4 Resulted in this output: ``` 0: line 0 0: line 1 1: line 2 2: line 3 3: line 4 ``` But I expected...
### Description Date('Y-m-01', strtotime("-1 month", strtotime(Date("2022-03-28")))) is returning '2022-02-01', but Date('Y-m-01', strtotime("-1 month", strtotime(Date("2022-03-29")))) is returning '2022-03-01'. This behaviour fails on different months and also based on year is leap...
### Description The following code: ```php format("Y-m-d") . PHP_EOL; echo "February: " . (\DateTime::createFromFormat("Y/m", "2022/02"))->format("Y-m-d") . PHP_EOL; echo "April: " . (\DateTime::createFromFormat("Y/m", "2022/04"))->format("Y-m-d"); ``` Resulted in this output: ``` January:...
### Description The following code: ```php
### Description Backslash(\\) and tilde(~) is convert to Shift_JIS (SJIS) using mb_convrert_encoding, But converted word is wrong word. Please see below code and 3v4l . Reproduced only PHP 8.1. The...
### Description The following code: No code needed. Just start php-fpm. Resulted in this output: ``` 2022-03-30T18:30:39.378169050Z + php-fpm 2022-03-30T18:30:39.437828786Z [30-Mar-2022 18:30:39] NOTICE: fpm is running, pid 1 2022-03-30T18:30:39.438452091Z [30-Mar-2022...
### Description The following code: ```php /usr/local/etc/php/8.1/conf.d/ext-opcache.ini with Zend OPcache v8.1.3, Copyright (c), by Zend Technologies Zend OPcache opcache.blacklist_filename => no value => no value opcache.consistency_checks => 0 => 0...