]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.4' into master
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 22 Sep 2020 14:14:03 +0000 (16:14 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 22 Sep 2020 14:14:03 +0000 (16:14 +0200)
* PHP-7.4:
  Fix #76943: Inconsistent stream_wrapper_restore() errors

1  2 
main/streams/userspace.c

index f6381a0014c4935596b293b526976fee8671787a,cf8f59b756fc12148dc692a18c86ee235d4b00af..0e9059a99e5239ff99f9733ea65a1070c0234aa2
@@@ -526,10 -559,10 +526,10 @@@ PHP_FUNCTION(stream_wrapper_restore
  {
        zend_string *protocol;
        php_stream_wrapper *wrapper;
-       HashTable *global_wrapper_hash;
+       HashTable *global_wrapper_hash, *wrapper_hash;
  
        if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &protocol) == FAILURE) {
 -              RETURN_FALSE;
 +              RETURN_THROWS();
        }
  
        global_wrapper_hash = php_stream_get_url_stream_wrappers_hash_global();