]> granicus.if.org Git - php/commitdiff
fix typo (and possible segfault)
authorAntony Dovgal <tony2001@php.net>
Wed, 18 Jan 2006 23:39:00 +0000 (23:39 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 18 Jan 2006 23:39:00 +0000 (23:39 +0000)
ext/spl/spl_iterators.c

index c0591133c5eb974c99c3ea8d578633f1e69e4567..6a41777e7f7a462c871b0f8f059cf4e14d8b6962 100755 (executable)
@@ -1890,7 +1890,7 @@ SPL_METHOD(CachingIterator, setFlags)
 
        intern = (spl_dual_it_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", flags) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &flags) == FAILURE) {
                return;
        }