tony2001                Sat Oct 18 09:33:21 2008 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/spl    spl_array.c 
  Log:
  revert the patch, it's not needed in this branch
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_array.c?r1=1.71.2.17.2.19&r2=1.71.2.17.2.20&diff_format=u
Index: php-src/ext/spl/spl_array.c
diff -u php-src/ext/spl/spl_array.c:1.71.2.17.2.19 
php-src/ext/spl/spl_array.c:1.71.2.17.2.20
--- php-src/ext/spl/spl_array.c:1.71.2.17.2.19  Fri Oct 17 22:10:27 2008
+++ php-src/ext/spl/spl_array.c Sat Oct 18 09:33:21 2008
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: spl_array.c,v 1.71.2.17.2.19 2008/10/17 22:10:27 tony2001 Exp $ */
+/* $Id: spl_array.c,v 1.71.2.17.2.20 2008/10/18 09:33:21 tony2001 Exp $ */
 
 #ifdef HAVE_CONFIG_H
 # include "config.h"
@@ -1205,8 +1205,6 @@
        
        if (use_arg) {
                if (ZEND_NUM_ARGS() != 1 || 
zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, 
"z", &arg) == FAILURE) {
-                       Z_TYPE_P(tmp) = IS_NULL;
-                       zval_ptr_dtor(&tmp);
                        zend_throw_exception(spl_ce_BadMethodCallException, 
"Function expects exactly one argument", 0 TSRMLS_CC);
                        return;
                }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to