From: Scott MacVicar Date: Tue, 15 May 2007 13:01:47 +0000 (+0000) Subject: Fixed bug #41390 (Clarify error message with invalid protocol scheme syntax) X-Git-Tag: RELEASE_1_2_0~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0856d961fcaad454d064f8da0fe3887b8082464;p=php Fixed bug #41390 (Clarify error message with invalid protocol scheme syntax) --- diff --git a/main/streams/userspace.c b/main/streams/userspace.c index 3c68b5d20b..29271d72c0 100644 --- a/main/streams/userspace.c +++ b/main/streams/userspace.c @@ -458,8 +458,8 @@ PHP_FUNCTION(stream_wrapper_register) if (zend_hash_exists(php_stream_get_url_stream_wrappers_hash(), protocol, protocol_len)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Protocol %s:// is already defined", protocol); } else { - /* Should never happen */ - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to register wrapper class %s to %s://", classname, protocol); + /* Hash doesn't exist so it must have been an invalid protocol scheme */ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid protocol scheme specified. Unable to register wrapper class %s to %s://", classname, protocol); } } } else {