From 0388c2b64228598a39e5f837258e2df936db3af6 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 27 Oct 2009 21:57:26 +0000 Subject: [PATCH] - Fixed bug #50018 (Typo in spl_limit_it_seek()) --- ext/spl/spl_iterators.c | 2 +- ext/spl/tests/iterator_032.phpt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index a32bfd8b24..91df0a6143 100755 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -2144,7 +2144,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)) { diff --git a/ext/spl/tests/iterator_032.phpt b/ext/spl/tests/iterator_032.phpt index 8b1d97e188..84eb8e61fb 100755 --- a/ext/spl/tests/iterator_032.phpt +++ b/ext/spl/tests/iterator_032.phpt @@ -45,6 +45,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=== -- 2.50.1