diff options
| author | Hannes Magnusson <bjori@php.net> | 2009-03-31 16:25:58 +0000 |
|---|---|---|
| committer | Hannes Magnusson <bjori@php.net> | 2009-03-31 16:25:58 +0000 |
| commit | ba2182a44cac3713d5c3196244d8ec986e07135c (patch) | |
| tree | d7fed7539983ad93841a3bbc367e04ce2e998ee3 | |
| parent | b57c3201e0c0cc5ef1d9a05f7a7dfccc741d91df (diff) | |
| download | php-git-ba2182a44cac3713d5c3196244d8ec986e07135c.tar.gz | |
Fix errormessage check
# Is correct in 5.
| -rw-r--r-- | main/streams/userspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/userspace.c b/main/streams/userspace.c index 67010ea861..99cf7d4bda 100644 --- a/main/streams/userspace.c +++ b/main/streams/userspace.c @@ -515,7 +515,7 @@ PHP_FUNCTION(stream_wrapper_register) RETURN_TRUE; } else { /* We failed. But why? */ - if (zend_hash_exists(php_stream_get_url_stream_wrappers_hash(), protocol, protocol_len)) { + 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 { /* Hash doesn't exist so it must have been an invalid protocol scheme */ |
