php-src
php-src copied to clipboard
The PHP Interpreter
### Description The following code: ```php D:\>php -v PHP 8.1.1 (cli) (built: Dec 15 2021 10:31:43) (ZTS Visual C++ 2019 x64) Copyright (c) The PHP Group Zend Engine v4.1.1, Copyright...
### Description The following code: ```php open($out, ZipArchive::CREATE | ZipArchive::OVERWRITE); ?> ``` Resulted in this warning: ``` PHP Warning: Unknown: Cannot destroy the zip context: Can't remove file: No such...
### Description The following code: ```php db = $db; } } class db extends PDO { public function __construct(string $dsn, string $username = null, string $password = null, array $options...
### Description According to the documentation https://www.php.net/manual/en/mysqli.options.php mysqli_options() should be called after mysqli_init() and before mysqli_real_connect(). But, when using persistent connections and the connection in the pool is broken, when...
### Description We have some code that worked without any issues on PHP 8.0, but it's failing with a segmentation fault on 8.1. I'm not sure whether it's a PHPUnit...
### Description two identical file one with encoding UTF-8-BOM other with encoding UTF-8, both read successfully but when we try to get a column, the second one (with BOM) return...
### Description The following code: ```php open('subtitle.zip'); $zip->extractTo('.'); // false ``` The following file is real zip archive because the `open` method return true, But the `extractTo` for some reason...
### Description The following code: ```php ``` Resulted in this output: ``` Windows NT HOMEPC 10.0 build 22000 (Windows 10) AMD64 ``` But I expected this output instead: ``` Windows...
### Description PHP 8.1.0 + 8.1.1 produces segfault, randomly. Downgrading to 8.0 solves the issue. --core dump--- BFD: Warning: coredump-php-fpm.30267 is truncated: expected core file size >= 5413076992, found: 35983360....
### Description In PHP 5.5 `mysqli::savepoint` and `mysqli::release_savepoint` were added, but not `rollback_to`. Maybe there is some database engine where savepoints have multiple purposes, but in `mariadb` the only use...