]> granicus.if.org Git - php/commitdiff
Removed unneeded HashPosition variable (php_implode() doesn't change the internal...
authorMatt Wilmas <mattwil@php.net>
Tue, 17 Mar 2009 00:02:39 +0000 (00:02 +0000)
committerMatt Wilmas <mattwil@php.net>
Tue, 17 Mar 2009 00:02:39 +0000 (00:02 +0000)
- It was added in '06 with the "200-300%" implode() optimization (hasn't been merged to HEAD)

ext/standard/string.c

index f1927aa127dbbff696b07df66857ff2237a19596..458cd4d3acff5f5929032e7aa88d1bf559e69043 100644 (file)
@@ -1130,7 +1130,6 @@ PHPAPI void php_implode(zval *delim, zval *arr, zval *return_value TSRMLS_DC)
 PHP_FUNCTION(implode)
 {
        zval **arg1 = NULL, **arg2 = NULL, *delim, *arr;
-       HashPosition pos;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|Z", &arg1, &arg2) == FAILURE) {
                return;
@@ -1162,13 +1161,9 @@ PHP_FUNCTION(implode)
                        return;
                }
        }
-
-       pos = Z_ARRVAL_P(arr)->pInternalPointer;
        
        php_implode(delim, arr, return_value TSRMLS_CC);
 
-       Z_ARRVAL_P(arr)->pInternalPointer = pos;
-
        if (arg2 == NULL) {
                FREE_ZVAL(delim);
        }