ZF-5035: Zend_Uri_Http::fromString throws InvalidArgumentException
Description
In Zend_Uri_Http::fromString, if $uri is false, throws InvalidArgumentException. But, InvalidArgumentException is not extends Zend_Exception.
if (is_string($uri) === false) {
throw new InvalidArgumentException('$uri is not a string');
}
should be
if (is_string($uri) === false) {
require_once 'Zend/Uri/Exception.php';
throw new Zend_Uri_Exception('$uri is not a string');
}
Comments
Posted by Robin Skoglund (robinsk) on 2009-04-04T20:18:38.000+0000
Fixed in r14650.
Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2009-04-05T04:17:07.000+0000
copy from trunk to 1.7 branch so that it is scheculed in next mini release.