cvs: /php4/ext/standard string.c

From: Date: Thu, 23 Dec 1999 14:56:21 +0000
Subject: cvs: /php4/ext/standard string.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-8437@lists.php.net to get a copy of this message
thies Thu Dec 23 09:56:21 1999 EDT Modified files: /php4/ext/standard string.c Log: @- 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); } /* }}} */

« previous php.version4 (#8437) next »