php-src
php-src copied to clipboard
The PHP Interpreter
### Description The following code: ```php use PHPUnit\Framework\TestCase; use function PHPUnit\Framework\assertEquals; enum EN { case one; case two; } class CC { public function __construct( public EN $fred ) {...
### Description I am maximal confused that the php serialization-Method is not able to serialize SimpleXMLElement-Objects, because SimpleXMLElement deserializes XML-Strings before... So SimpleXml should implement Searializable!
### Description Hello! I've discovered strange issue with PHP FPM worker processes. I've setup monitoring using php-fpm exporter + prometheus + grafana. There is metric called request_duration which always increases...
### Description The version from SQL (from `select version()`) should match the version reported by php mysqli/pdo_mysql drivers. The following code: ``` var_dump(...->expr('select version()')->getOne()); // raw version from SQL var_dump(...->getWrappedConnection()->getServerVersion());...
### Description The following code: ```php $prompt = "\x1b[38;5;203m> \x1b[m"; echo $prompt; var_dump(readline()); var_dump(readline($prompt)); ``` Resulted in this output: https://user-images.githubusercontent.com/14214667/149023343-3da5830f-b953-4cd7-a1f1-b1a7a769892f.png But I expected this output instead: https://user-images.githubusercontent.com/14214667/149023371-6ce10901-31c5-4136-aba0-12b343182b93.png I have not...
### Description In the Twitter API... The following code: ``` $url = $endpoint . '?' . 'response_type=' . 'code' . '&client_id=' . $client_id . '&redirect_uri=' . rawurlencode($redirect_uri) . '&scope=' ....
### Description The following code: ```php setValue($test, 3); var_dump($test->property); ``` Resulted in this output: ``` string(1) "3" ``` But I expected this output instead: ``` Fatal error: Uncaught TypeError: Cannot...
### Description The following code: specified `--with-curl=/usr/local/curl-7.57.0` , still make default dir. Resulted in Makefile: `cat Makefile | grep CURL` ``` CURL_SHARED_LIBADD = ``` But I expected this output instead:...
### Description The following code: ```php getId()); ``` Resulted in this output: ``` false ``` But I expected this output instead: ``` 'Europe/Amsterdam' ``` It looks like the implementation of...
### Description Readonly properties should not be mutable with any means, but the following code surprisingly works (https://3v4l.org/qiDTk): ```php bar = &$i; } } $i = 1; $foo = new...