bjori Sun Oct 8 10:50:19 2006 UTC Modified files: /php-src/ext/spl spl_array.c Log: Remove duplicate 'wrong param count' warning http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_array.c?r1=1.112&r2=1.113&diff_format=u Index: php-src/ext/spl/spl_array.c diff -u php-src/ext/spl/spl_array.c:1.112 php-src/ext/spl/spl_array.c:1.113 --- php-src/ext/spl/spl_array.c:1.112 Fri Aug 11 17:06:19 2006 +++ php-src/ext/spl/spl_array.c Sun Oct 8 10:50:19 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: spl_array.c,v 1.112 2006/08/11 17:06:19 nlopess Exp $ */ +/* $Id: spl_array.c,v 1.113 2006/10/08 10:50:19 bjori Exp $ */ #ifdef HAVE_CONFIG_H # include "config.h" @@ -1004,7 +1004,7 @@ zend_hash_copy(HASH_OF(return_value), spl_array_get_hash_table(intern, 0 TSRMLS_CC), (copy_ctor_func_t) zval_add_ref, &tmp, sizeof(zval*)); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &array) == FAILURE) { - WRONG_PARAM_COUNT; + return; } if (Z_TYPE_PP(array) == IS_OBJECT && intern == (spl_array_object*)zend_object_store_get_object(object TSRMLS_CC)) { zval_ptr_dtor(&intern->array);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php