php-src
php-src copied to clipboard
The PHP Interpreter
### Description The following code: ```php error_reporting(E_ALL); set_error_handler(function ($errNo, $errStr) {echo 'Handle ' . $errStr;}); str_contains("test", null); new \IntlDateFormatter('en_US', 0, null);
### Description Hi! We recently upgraded to PHP 8.1 and now we sporadically get this kind of new errors: `Failed to set memory limit to 536870912 bytes (Current memory usage...
This is a performance issue of php-src build. see https://github.com/mvorisek/image-php/runs/5194149719 and https://github.com/mvorisek/image-php/runs/5194149745 PHP 8.1 build takes +- twice as long on Alpine & Debian platforms results are repeatable across CI...
### Description The following code: ```php $string ="load((int)".$this->variables['page_id'].");?>"; file_put_contents(SITEPATH."/uploads/test.php", $string); $result = exec( "php '".SITEPATH."/uploads/test.php' 2>&1");
### Description In the code below, I'm opening a csv file, seeking to each line and trying to get the contents. `$file->current()` returns the correct line everytime but `$file->key()` returns...
### Description The following code: ```php Parse error: syntax error, unexpected single-quoted string "e" in … on line … But I expected this output instead: ``` Array ( [0] =>...
### Description I'm using PHP 8.0.16 CLI on Docker in Amazon Linux 2. Today I saw some core dump files. I checked quickly and saw this; ```shell [Thread debugging using...
### Description # uname -a Linux host 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux # php-fpm8.1 -v PHP 8.1.2 (fpm-fcgi) (built: Jan 27 2022 12:22:31) Copyright (c) The PHP...
### Description The following code: ```php 7, 2 => 3, 3 => 5, 4 => 1, 5 => 6, 6 => 2, 7 => 4, 8 => 0); $BTG =...
### Description edit: warning, there's conflicting definitions of 7bit.. according to https://galprop.stanford.edu/bugs/docs/en/html/api/Bugzilla/Util.html it should be >Returns true is the string contains only 7-bit characters (ASCII 32 through 126, ASCII 10...