Fix #76943: Inconsistent stream_wrapper_restore() errors#6183
Fix #76943: Inconsistent stream_wrapper_restore() errors#6183cmb69 wants to merge 1 commit intophp:PHP-7.3from
Conversation
If restoring of any not registered built-in wrapper is requested, the function is supposed to fail with a warning, so we have to check this condition first. Furthermore, to be able to detect whether a built-in wrapper has been changed, it is not sufficient to check whether *any* userland wrapper has been registered, but rather whether the specific wrapper has been modified.
|
How would it possible to determine whether a different stream wrapper has been registered?
With this change, the only way to overcome notices is to mute error output |
* since PHP 8.0-RC1 * since PHP 7.3.24 * since PHP 7.4.12 * see php/php-src@5ed0602 * see php/php-src#6183
It seems to me this functionality is missing; something like |
* since PHP 8.0-RC1 * since PHP 7.3.24 * since PHP 7.4.12 * see php/php-src@5ed0602 * see php/php-src#6183
If restoring of any not registered built-in wrapper is requested, the
function is supposed to fail with a warning, so we have to check this
condition first.
Furthermore, to be able to detect whether a built-in wrapper has been
changed, it is not sufficient to check whether any userland wrapper
has been registered, but rather whether the specific wrapper has been
modified.