RE: [PHP-CVS] cvs: php-src /ext/standard basic_functions.c
| From: | Dmitry Stogov | Date: | Wed, 14 Sep 2005 05:53:34 +0000 |
| Subject: | RE: [PHP-CVS] cvs: php-src /ext/standard basic_functions.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-33945@lists.php.net to get a copy of this message | ||
Are you sure?
Passing by value may copy whole array.
Dmitry.
> -----Original Message-----
> From: Ilia Alshanetsky [mailto:iliaa@php.net]
> Sent: Tuesday, September 13, 2005 5:23 PM
> To: php-cvs@lists.php.net
> Subject: [PHP-CVS] cvs: php-src /ext/standard basic_functions.c
>
>
> iliaa Tue Sep 13 09:22:50 2005 EDT
>
> Modified files:
> /php-src/ext/standard basic_functions.c
> Log:
> Make key() and current() take argument by value.
>
>
> http://cvs.php.net/diff.php/php-src/ext/standard/basic_functio
ns.c?r1=1.732&r2=1.733&ty=u
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.732
php-src/ext/standard/basic_functions.c:1.733
--- php-src/ext/standard/basic_functions.c:1.732 Thu Sep 8 07:10:34
2005
+++ php-src/ext/standard/basic_functions.c Tue Sep 13 09:22:49 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.732 2005/09/08 11:10:34 dmitry Exp $ */
+/* $Id: basic_functions.c,v 1.733 2005/09/13 13:22:49 iliaa Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -760,8 +760,8 @@
PHP_FE(prev, first_arg_force_ref)
PHP_FE(next, first_arg_force_ref)
PHP_FE(reset, first_arg_force_ref)
- PHP_FE(current, first_arg_force_ref)
- PHP_FE(key,
first_arg_force_ref)
+ PHP_FE(current, NULL)
+ PHP_FE(key, NULL)
PHP_FE(min,
NULL)
PHP_FE(max,
NULL)
PHP_FE(in_array,
NULL)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php