cvs: /php4/ext/standard string.c
| From: | Thies C. Arntzen | Date: | Sun, 21 Nov 1999 12:06:10 +0000 |
| Subject: | cvs: /php4/ext/standard string.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-6617@lists.php.net to get a copy of this message | ||
thies Sun Nov 21 07:06:10 1999 EDT
Modified files:
/php4/ext/standard string.c
Log:
(PHP strtr) little smarter
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.58 php4/ext/standard/string.c:1.59
--- php4/ext/standard/string.c:1.58 Sat Nov 20 17:09:27 1999
+++ php4/ext/standard/string.c Sun Nov 21 07:05:39 1999
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.58 1999/11/20 22:09:27 andrei Exp $ */
+/* $Id: string.c,v 1.59 1999/11/21 12:05:39 thies Exp $ */
/* Synced with php3 revision 1.193 1999-06-16 [ssb] */
@@ -1120,9 +1120,9 @@
}
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) {