Issues

ZF2-152: Zend\Db\TableAbstractRowset::offsetGet references old Exception

Issue Type: Bug Created: 2012-02-04T19:35:35.000+0000 Last Updated: 2012-02-22T23:31:58.000+0000 Status: Closed Fix version(s): Reporter: Mario Dees (mariod) Assignee: Ralph Schindler (ralph) Tags: - Zend\Db

Related issues: Attachments:

Description

public function offsetGet($offset)
{
    $offset = (int) $offset;
    if ($offset < 0 || $offset >= $this->_count) {
        require_once 'Zend/Db/Table/Rowset/Exception.php';
        throw new Zend_Db_Table_Rowset_Exception("Illegal index $offset");
    }
    $this->_pointer = $offset;

    return $this->current();
}

should be

public function offsetGet($offset)
{
    $offset = (int) $offset;
    if ($offset < 0 || $offset >= $this->_count) {
        throw new RowsetException("Illegal index $offset");
    }
    $this->_pointer = $offset;

    return $this->current();
}

Comments

Posted by Adam Lundrigan (adamlundrigan) on 2012-02-22T23:31:58.000+0000

Zend\Db is being refactored by [~ralph] (here) and will be merged for beta3, replacing the existing Zend\Db code in master.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts