Browse Source

Removed unneeded HashPosition variable (php_implode() doesn't change the internal pointer)

- It was added in '06 with the "200-300%" implode() optimization (hasn't been merged to HEAD)
experimental/5.3-FPM
Matt Wilmas 18 years ago
parent
commit
7f373057ef
  1. 5
      ext/standard/string.c

5
ext/standard/string.c

@ -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);
}

Loading…
Cancel
Save