Browse Source

MFH: Fixed bug #41390 (Clarify error message with invalid protocol scheme)

experimental/5.2-WITH_DRCP
Scott MacVicar 19 years ago
parent
commit
55a3d5f8b1
  1. 2
      NEWS
  2. 4
      main/streams/userspace.c

2
NEWS

@ -10,6 +10,8 @@ PHP NEWS
- Fixed altering $this via argument named "this". (Dmitry)
- Fixed PHP CLI to use the php.ini from the binary location. (Hannes)
- Fixed segfault in strripos(). (Tony, Joxean Koret)
- Fixed bug #41390 (Clarify error message with invalid protocol scheme).
(Scott)
- Fixed bug #41378 (fastcgi protocol lacks support for Reason-Phrase in
"Status:" header). (anight at eyelinkmedia dot com, Dmitry)
- Fixed bug #41374 (wholetext concats values of wrong nodes). (Rob)

4
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 + 1)) {
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 {

Loading…
Cancel
Save