php-src
php-src copied to clipboard
The PHP Interpreter
### Description I ran into the below scenario, which might be correct, but it wasn't something I expected, and I wanted to make sure it's the correct behavior. In the...
### Description When creating an `IntlPartsIterator` with a type of `IntlPartsIterator::KEY_LEFT` or `IntlPartsIterator::KEY_RIGHT`, the returned key value is off by one after the first key. So for the string "ABC"...
### Description The following code: ```php $key) { $decrypted = null; // ;) $result = openssl_open($sealedData, $decrypted, $sealedKeys[$i], $key, $cipherAlgo, $iv); echo "OPEN: " . $decrypted . PHP_EOL; echo "RESULT:...
### Description add this signature and syntax to PHP core to enjoy developer from fast developing ``` class MyObject{ __json_constructor( {"AdditionAmount": 0 // default value, "CashRegisterDeviceRef": null, "CustomerAddressRef": null, "DeliveryDesc":...
### Description This was a hard bug to name, and hence it was hard to search for. I couldn't find a similar report, but if this was already reported, my...
### Description It looks like the mcrypt extension is not available (yet?) on php 8.1. I couldn't find anything about whether or not there's already efforts underway to change that,...
From manual page: https://php.net/function.file-put-contents ---
### Description Hello, About `mysqli_sql_exception`: https://www.php.net/manual/en/class.mysqli-sql-exception.php What's the point of: `protected string $sqlstate;` if we cannot access it? I was also trying: ``` class mysqli_sql_exception_x extends \mysqli_sql_exception { public function...
### Description PHP 8.1.0 The following code: ```php
### Description While working on a Symfony project, I made a small mistake in the code's design which lead to segfaults when running the testing suite. After debugging, I managed...