diff options
Diffstat (limited to 'main/streams/userspace.c')
-rw-r--r-- | main/streams/userspace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/streams/userspace.c b/main/streams/userspace.c index db3565a901..20252deee9 100644 --- a/main/streams/userspace.c +++ b/main/streams/userspace.c @@ -498,7 +498,7 @@ PHP_FUNCTION(stream_wrapper_register) zend_long flags = 0; if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS|l", &protocol, &classname, &flags) == FAILURE) { - RETURN_FALSE; + RETURN_THROWS(); } uwrap = (struct php_user_stream_wrapper *)ecalloc(1, sizeof(*uwrap)); @@ -538,7 +538,7 @@ PHP_FUNCTION(stream_wrapper_unregister) zend_string *protocol; if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &protocol) == FAILURE) { - RETURN_FALSE; + RETURN_THROWS(); } if (php_unregister_url_stream_wrapper_volatile(protocol) == FAILURE) { @@ -560,7 +560,7 @@ PHP_FUNCTION(stream_wrapper_restore) HashTable *global_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(); |