scottmac                Tue May 15 13:01:47 2007 UTC

  Modified files:              
    /php-src/main/streams       userspace.c 
  Log:
  Fixed bug #41390 (Clarify error message with invalid protocol scheme syntax)
  
http://cvs.php.net/viewvc.cgi/php-src/main/streams/userspace.c?r1=1.41&r2=1.42&diff_format=u
Index: php-src/main/streams/userspace.c
diff -u php-src/main/streams/userspace.c:1.41 
php-src/main/streams/userspace.c:1.42
--- php-src/main/streams/userspace.c:1.41       Tue Feb 13 19:50:13 2007
+++ php-src/main/streams/userspace.c    Tue May 15 13:01:47 2007
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: userspace.c,v 1.41 2007/02/13 19:50:13 tony2001 Exp $ */
+/* $Id: userspace.c,v 1.42 2007/05/15 13:01:47 scottmac Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -458,8 +458,8 @@
                        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 {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to