(PHP strtr) little smarter

This commit is contained in:
Thies C. Arntzen 1999-11-21 12:05:39 +00:00
parent afcd361117
commit 9788129e0e

View File

@ -1120,9 +1120,9 @@ static void php_strtr_array(zval *return_value,char *str,int slen,HashTable *has
}
found = 0;
memcpy(key,str+pos,maxlen);
for (len = maxlen; len >= minlen; len--) {
memcpy(key,str+pos,len);
key[ len ]=0;
if (zend_hash_find(hash,key,len+1,(void**)&trans) == SUCCESS) {