Issues

ZF-5035: Zend_Uri_Http::fromString throws InvalidArgumentException

Issue Type: Coding Standards Violation Created: 2008-11-23T09:39:09.000+0000 Last Updated: 2009-11-20T08:49:21.000+0000 Status: Resolved Fix version(s): - 1.8.1 (12/May/09)

Reporter: Kazusuke Sasezaki (sasezaki) Assignee: Udo Telaar (udo) Tags: - Zend_Uri

Related issues: - ZF-6212

Attachments:

Description

In Zend_Uri_Http::fromString, if $uri is false, throws InvalidArgumentException. But, InvalidArgumentException is not extends Zend_Exception.

<pre class="highlight"> 
        if (is_string($uri) === false) {
            throw new InvalidArgumentException('$uri is not a string');
        }

should be

<pre class="highlight"> 
        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.

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