Issues

ZF-4395: Zend_Uri_Http::fromString doesn't import Zend_Uri_Exception

Description

In Zend_Uri_Http::fromString, if the scheme is not valid, it throws a Zend_Uri_Exception, but fails to require_once 'Zend/Uri/Exception.php' prior to doing this.


if (in_array($scheme, array('http', 'https')) === false) {
    throw new Zend_Uri_Exception("Invalid scheme: '$scheme'");
}

should be


if (in_array($scheme, array('http', 'https')) === false) {
        require_once 'Zend/Uri/Exception.php';
        throw new Zend_Uri_Exception("Invalid scheme: '$scheme'");
}

Comments

Fixed in rev. 11866, test added

Merged into release-1.6 branch at r11890

Changing issues in preparation for the 1.7.0 release.