-
-
Notifications
You must be signed in to change notification settings - Fork 205
PHP 8.0: NewFunctions: handle 11 new functions #1197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
> Added fdiv() function, which performs a floating-point division under > IEEE 754 semantics. Division by zero is considered well-defined and > will return one of Inf, -Inf or NaN. Refs: * https://github.com/php/php-src/blob/69888c3ff1f2301ead8e37b23ff8481d475e29d2/UPGRADING#L570-L572 * php/php-src@e35bdb4
> Added get_debug_type() function, which returns a type useful for error > messages. Unlike gettype(), it uses canonical type names, returns class > names for objects, and indicates the resource type for resources. > RFC: https://wiki.php.net/rfc/get_debug_type Refs: * https://wiki.php.net/rfc/get_debug_type * php/php-src@ef0e447
> Added get_resource_id($resource) function, which returns the same value as (int) $resource. It provides the same functionality under a clearer API. Refs: * https://github.com/php/php-src/blob/c0172aa2bdb9ea223c8491bdb300995b93a857a0/UPGRADING#L719-L720 * php/php-src#5427 * php/php-src@a0abc26
> Added preg_last_error_msg(), which returns a human-readable message for > the last PCRE error. It complements preg_last_error(), which returns an > integer enum instead. Refs: * https://github.com/php/php-src/blob/69888c3ff1f2301ead8e37b23ff8481d475e29d2/UPGRADING#L556-L558 * php/php-src@aa79a22 * php/php-src@03bd433
> Added str_contains($haystack, $needle) function, which checks whether > $haystack contains $needle as a sub-string. It is equivalent to writing > strpos($haystack, $needle) !== false. Refs: * https://wiki.php.net/rfc/str_contains * php/php-src@1668ad7
…h() functions > `str_starts_with()` checks if a string begins with another string and returns a boolean value (true/false) whether it does. > `str_ends_with()` checks if a string ends with another string and returns a boolean value (true/false) whether it does. Refs: * https://wiki.php.net/rfc/add_str_starts_with_and_ends_with_functions * php/php-src#5300 * php/php-src@31fb6a0
> The function imagegetinterpolation() to get the current interpolation method > has been added. Refs: * https://github.com/php/php-src/blob/69888c3ff1f2301ead8e37b23ff8481d475e29d2/UPGRADING#L615-L616 * php/php-src@03bd433
> Add enchant_dict_add and enchant_dict_is_added functions Refs: * https://github.com/php/php-src/blob/c0172aa2bdb9ea223c8491bdb300995b93a857a0/NEWS#L73 * https://github.com/php/php-src/blob/c0172aa2bdb9ea223c8491bdb300995b93a857a0/UPGRADING#L591-L592 Includes unit test.
> Added ldap_count_references(), which returns the number of reference > messages in a search result. Refs: * https://github.com/php/php-src/blob/c0172aa2bdb9ea223c8491bdb300995b93a857a0/UPGRADING#L723-L724 * php/php-src@915abeb Includes unit test.
40 tasks
wimg
approved these changes
Aug 16, 2020
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.
The commits in this PR line up with the commits in PHP Core to add the functions.
Related to #809
PHP 8.0: NewFunctions: account for new fdiv() function
Refs:
PHP 8.0: NewFunctions: account for new get_debug_type() function
Refs:
PHP 8.0: NewFunctions: account for new get_resource_id() function
Refs:
PHP 8.0: NewFunctions: account for new preg_last_error_msg() function
Refs:
PHP 8.0: NewFunctions: account for new str_contains() function
Refs:
PHP 8.0: NewFunctions: account for str_starts_with() and str_ends_with() functions
Refs:
PHP 8.0: NewFunctions: account for imagegetinterpolation() function
Refs:
PHP 8.0: NewFunctions: account for new Enchant functions
Refs:
Includes unit test.
PHP 8.0: NewFunctions: account for new LDAP function
Refs:
Includes unit test.