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
Posted by Shahar Evron (shahar) on 2008-10-11T05:01:49.000+0000
Fixed in rev. 11866, test added
Posted by Alexander Veremyev (alexander) on 2008-10-12T03:12:26.000+0000
Merged into release-1.6 branch at r11890
Posted by Wil Sinclair (wil) on 2008-11-13T14:10:03.000+0000
Changing issues in preparation for the 1.7.0 release.