cvs: php4(php_4_0_4) /ext/standard string.c
| From: | Sascha Schumann | Date: | Thu, 14 Dec 2000 16:00:32 +0000 |
| Subject: | cvs: php4(php_4_0_4) /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3155@lists.php.net to get a copy of this message | ||
sas Thu Dec 14 08:00:32 2000 EDT
Branch: php_4_0_4
Modified files:
/php4/ext/standard string.c
Log:
MFH strtr fix
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.168 php4/ext/standard/string.c:1.168.2.1
--- php4/ext/standard/string.c:1.168 Thu Nov 30 17:55:31 2000
+++ php4/ext/standard/string.c Thu Dec 14 08:00:31 2000
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.168 2000/12/01 01:55:31 fmk Exp $ */
+/* $Id: string.c,v 1.168.2.1 2000/12/14 16:00:31 sas Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -1559,6 +1559,11 @@
}
convert_to_string_ex(str);
+
+ /* shortcut for empty string */
+ if(Z_STRLEN_PP(str) == 0) {
+ RETURN_EMPTY_STRING();
+ }
if (ac == 2) {
php_strtr_array(return_value,(*str)->value.str.val,(*str)->value.str.len,HASH_OF(*from));