stream_wrapper_unregister()
stream_wrapper_unregister() — Unregister a URL 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
Allows you to disable an already defined stream wrapper. Once the wrapper has been disabled you may override it with a user-defined wrapper using stream_wrapper_register() or re-enable it later on with stream_wrapper_restore().
Signature
stream_wrapper_unregister(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_unregister(); 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_unregister() (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.