summaryrefslogtreecommitdiff
path: root/ext/spl
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-01-26 23:59:50 +0000
committerMarcus Boerger <helly@php.net>2004-01-26 23:59:50 +0000
commita43693eaf03b8bc8ce5565818004271a6293a7a5 (patch)
treef8e252dac878e4064e290fef8b197cccceaeea8a /ext/spl
parent617b8df6c0179ed769c61814cca0dacae2d9f279 (diff)
downloadphp-git-a43693eaf03b8bc8ce5565818004271a6293a7a5.tar.gz
Must use zval* here
Diffstat (limited to 'ext/spl')
-rwxr-xr-xext/spl/spl_iterators.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c
index 82b12a1ae9..4b64891a24 100755
--- a/ext/spl/spl_iterators.c
+++ b/ext/spl/spl_iterators.c
@@ -865,7 +865,7 @@ static zend_function_entry spl_funcs_ParentIterator[] = {
static INLINE void spl_limit_it_seek(spl_dual_it_object *intern, long pos TSRMLS_DC)
{
- zval zpos;
+ zval *zpos;
spl_dual_it_free(intern TSRMLS_CC);
if (pos < intern->u.limit.offset) {
@@ -877,9 +877,10 @@ static INLINE void spl_limit_it_seek(spl_dual_it_object *intern, long pos TSRMLS
return;
}
if (instanceof_function(intern->inner.ce, spl_ce_SeekableIterator TSRMLS_CC)) {
- INIT_PZVAL(&zpos);
- ZVAL_LONG(&zpos, pos);
- zend_call_method_with_1_params(&intern->inner.zobject, intern->inner.ce, NULL, "seek", NULL, &zpos);
+ MAKE_STD_ZVAL(zpos);
+ ZVAL_LONG(zpos, pos);
+ zend_call_method_with_1_params(&intern->inner.zobject, intern->inner.ce, NULL, "seek", NULL, zpos);
+ zval_ptr_dtor(&zpos);
spl_dual_it_free(intern TSRMLS_CC);
zend_user_it_free_current(intern->inner.iterator TSRMLS_CC);
spl_dual_it_fetch(intern, 1 TSRMLS_CC);