Issues

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

Fixed in r14650.

copy from trunk to 1.7 branch so that it is scheculed in next mini release.