- It was added in '06 with the "200-300%" implode() optimization (hasn't been merged to HEAD)
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;
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);
}