stream_wrapper_restore
Restore previously unregistered built-in wrappers
Function name: stream_wrapper_restore()
Function description: The stream_wrapper_restore() function is used to restore the stream encapsulator that was previously logged out by the stream_wrapper_unregister() function.
Usage: stream_wrapper_restore(void): bool
Parameters: None
Return value: Return true if the stream encapsulator is successfully restored; otherwise return false.
Example:
<?php // 注销流封装器stream_wrapper_unregister('http'); // 恢复被注销的流封装器if (stream_wrapper_restore()) { echo '流封装器恢复成功'; } else { echo '流封装器恢复失败'; } ?>
Notes: