PHP 8.1 | NewClasses: account for PHP 8.1 changes#1328
Merged
Conversation
Note: in contrast to the original RFC proposal, [the procedural functions mentioned in the RFC were not included in the final implementation](php/php-src#6771 (comment)). Includes unit test. Refs: * https://www.php.net/manual/en/migration81.new-classes.php#migration81.new-classes.intl * https://wiki.php.net/rfc/intldatetimepatterngenerator * php/php-src#6771 * php/php-src@ae9f6e7
> Support for Fibers has been added. I've gone through all PRs I could find related to this and these were the only classes I could find to account for. Includes unit tests. Refs: * https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.core.fibers * https://wiki.php.net/rfc/fibers * https://www.php.net/manual/en/language.fibers.php * php/php-src#6875 * php/php-src@c276c16
> Added `CURLStringFile`, which can be used to post a file from a string rather > than a file: > ```php > $file = new CURLStringFile($data, 'filename.txt', 'text/plain'); > curl_setopt($curl, CURLOPT_POSTFIELDS, ['file' => $file]); > ``` Includes unit test. Refs: * https://github.com/php/php-src/blob/f67986a9218f4889d9352a87c29337a5b6eaa4bd/UPGRADING#L231-L235 * php/php-src#6456 * php/php-src@e727919
47 tasks
wimg
approved these changes
Mar 16, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PHP 8.1 | NewClasses: handle new IntlDatePatternGenerator class
Note: in contrast to the original RFC proposal, the procedural functions mentioned in the RFC were not included in the final implementation.
Includes unit test.
Refs:
PHP 8.1 | NewClasses: add support for Fibers
I've gone through all PRs I could find related to this and these were the only classes I could find to account for.
Includes unit tests.
Refs:
PHP 8.1 | NewClasses: handle new CURLStringFile class
Includes unit test.
Refs:
Related to #1299