@@ 54-63 (lines=10) @@ | ||
51 | */ |
|
52 | public function hasNext() |
|
53 | { |
|
54 | if (!$this->_handle) { |
|
55 | return false; |
|
56 | } else { |
|
57 | if (feof($this->_handle)) { |
|
58 | fclose($this->_handle); |
|
59 | return false; |
|
60 | } else { |
|
61 | return true; |
|
62 | } |
|
63 | } |
|
64 | } |
|
65 | ||
66 |
@@ 61-69 (lines=9) @@ | ||
58 | return true; |
|
59 | } elseif (!$this->_handle) { |
|
60 | return false; |
|
61 | } else { |
|
62 | if (feof($this->_handle)) { |
|
63 | fclose($this->_handle); |
|
64 | $this->_handle = null; |
|
65 | return false; |
|
66 | } else { |
|
67 | return true; |
|
68 | } |
|
69 | } |
|
70 | } |
|
71 | ||
72 | /** |