stream_wrapper_restore()
stream_wrapper_restore() — Restores a previously unregistered built-in wrapper.
Built-in function of PHP 8.5. The manual lists it as available in PHP 5 >= 5.1.0, PHP 7, PHP 8. This page is the reference card: signature, parameters and return value, plus the changelog and the example the manual provides.
What it does
Restores a built-in wrapper previously unregistered with stream_wrapper_unregister().
Signature
stream_wrapper_restore(string $protocol): bool
Parameters
| Parameter | Type | What it takes |
|---|---|---|
| $protocol | string |
Return value
Returns true on success or false on failure.
Example
The PHP manual ships no example for stream_wrapper_restore(); the signature and the parameter table above are the contract.
All PHP 8.5 built-in functions
Reference card built from the PHP manual page stream_wrapper_restore() (PHP documentation, CC BY 3.0). The page is generated from the manual, so the wording of the parameter and return value text follows php.net.