php4-beta | 199912
Date: 12/23/99
- Next message: zeev <email protected>: "Re: [PHP4BETA] TSRM problems... UMBRs everywhere:-(("
- Previous message: R: "[PHP4BETA] PHP4B3 CGI install"
- Next in thread: Thies C. Arntzen: "[PHP4BETA] cvs: /php4/ext/standard string.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
thies Thu Dec 23 09:56:21 1999 EDT
Modified files:
/php4/ext/standard string.c
Log:
<email protected> strrev() no longer modifies arg1. (Thies)
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.79 php4/ext/standard/string.c:1.80
--- php4/ext/standard/string.c:1.79 Mon Dec 20 15:43:47 1999
+++ php4/ext/standard/string.c Thu Dec 23 09:55:50 1999
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.79 1999/12/20 20:43:47 andrei Exp $ */
+/* $Id: string.c,v 1.80 1999/12/23 14:55:50 thies Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -1295,16 +1295,16 @@
convert_to_string_ex(str);
- len = (*str)->value.str.len;
+ *return_value = **str;
+ pval_copy_constructor(return_value);
+
+ len = return_value->value.str.len;
for (i=0; i<len-1-i; i++) {
- c=(*str)->value.str.val[i];
- (*str)->value.str.val[i] = (*str)->value.str.val[len-1-i];
- (*str)->value.str.val[len-1-i]=c;
+ c=return_value->value.str.val[i];
+ return_value->value.str.val[i] = return_value->value.str.val[len-1-i];
+ return_value->value.str.val[len-1-i]=c;
}
-
- *return_value = **str;
- pval_copy_constructor(return_value);
}
/* }}} */
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: zeev <email protected>: "Re: [PHP4BETA] TSRM problems... UMBRs everywhere:-(("
- Previous message: R: "[PHP4BETA] PHP4B3 CGI install"
- Next in thread: Thies C. Arntzen: "[PHP4BETA] cvs: /php4/ext/standard string.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

