PHP 7.4: NewFunctions: add various new functions#819
Merged
Conversation
> - Core: > Added get_mangled_object_vars($object) function, which returns the mangled > object properties. It returns the same result as (array) $object, with the > exception that it ignores overloaded array casts, such as used by > ArrayObject. > > - OpenSSL: > Added openssl_x509_verify(mixed cert, mixed key) function that verifies the > signature of the certificate using a public key. A wrapper around the > OpenSSL's X509_verify() function. > See <php/php-src#3624>. > > - Pcntl: > Added bool pcntl_unshare(int flags) function which allows to dissociate > parts of the process execution context which are currently being shared with > other processes. Explicitly, it allows you to unshare the mount, IPC, UTS, > network, PID, user and cgroup namespaces. > > - Standard > * bool sapi_windows_set_ctrl_handler(callable handler, [, bool add = true]) - > set or remove a handler function upon receiving a CTRL event. The handler > function is expected have a signature "function handler(int $event)". > * bool sapi_windows_generate_ctrl_event(int type, int pid) - send a CTRL event > to another process. Refs: * https://github.com/php/php-src/blob/42cc58ff7b2fee1c17a00dc77a4873552ffb577f/UPGRADING#L348-L379
40 tasks
wimg
approved these changes
Jun 16, 2019
wimg
approved these changes
Jun 16, 2019
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.
Refs:
Loosely related to #808