From: Michael Wallner <mike@php.net>
Date: Wed, 23 Nov 2005 16:36:11 +0000 (+0000)
Subject: - no trailing NULs
X-Git-Tag: RELEASE_2_0_2~110
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d11d157c9f6bd69a04438aa2e597cce6e5fa43c7;p=php

- no trailing NULs
---

diff --git a/ext/hash/hash.c b/ext/hash/hash.c
index e318a52460..4d14992edc 100644
--- a/ext/hash/hash.c
+++ b/ext/hash/hash.c
@@ -364,7 +364,7 @@ PHP_FUNCTION(hash_algos)
 	for(zend_hash_internal_pointer_reset_ex(&php_hash_hashtable, &pos);
 		(type = zend_hash_get_current_key_ex(&php_hash_hashtable, &str, &str_len, &idx, 0, &pos)) != HASH_KEY_NON_EXISTANT;
 		zend_hash_move_forward_ex(&php_hash_hashtable, &pos)) {
-		add_next_index_stringl(return_value, str, str_len, 1);
+		add_next_index_stringl(return_value, str, str_len-1, 1);
 	}
 }
 /* }}} */