]> granicus.if.org Git - php/commitdiff
- Fixed bug #50018 (Typo in spl_limit_it_seek())
authorFelipe Pena <felipe@php.net>
Tue, 27 Oct 2009 21:57:26 +0000 (21:57 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 27 Oct 2009 21:57:26 +0000 (21:57 +0000)
ext/spl/spl_iterators.c
ext/spl/tests/iterator_032.phpt

index 849ac7b9808f148e5447279e846a10418985d6b8..07e3dea9e6039b0a2c550536331f82c4d2f269cd 100755 (executable)
@@ -1735,7 +1735,7 @@ static inline void spl_limit_it_seek(spl_dual_it_object *intern, long pos TSRMLS
                return;
        }
        if (pos >= intern->u.limit.offset + intern->u.limit.count && intern->u.limit.count != -1) {
-               zend_throw_exception_ex(spl_ce_OutOfBoundsException, 0 TSRMLS_CC, "Cannot seek to %ld which is behind offest %ld plus count %ld", pos, intern->u.limit.offset, intern->u.limit.count);
+               zend_throw_exception_ex(spl_ce_OutOfBoundsException, 0 TSRMLS_CC, "Cannot seek to %ld which is behind offset %ld plus count %ld", pos, intern->u.limit.offset, intern->u.limit.count);
                return;
        }
        if (instanceof_function(intern->inner.ce, spl_ce_SeekableIterator TSRMLS_CC)) {
index 86695d4af8e0107ac76b65d781b11d4da4c1a14d..9941a31bb90ce0d79d952e715f702f2d0302acf6 100755 (executable)
@@ -47,6 +47,6 @@ int(1)
 int(2)
 Cannot seek to 0 which is below the offset 1
 int(3)
-Cannot seek to 3 which is behind offest 1 plus count 2
+Cannot seek to 3 which is behind offset 1 plus count 2
 bool(false)
 ===DONE===