Zend Framework

Zend_Uri_Http::fromString throws InvalidArgumentException

Details

  • Type: Coding Standards Violation Coding Standards Violation
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.0
  • Fix Version/s: 1.8.1
  • Component/s: Zend_Uri
  • Labels:
    None

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');
        }

Issue Links

Activity

Hide
Robin Skoglund added a comment -

Fixed in r14650.

Show
Robin Skoglund added a comment - Fixed in r14650.
Hide
Satoru Yoshida added a comment -

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

Show
Satoru Yoshida added a comment - copy from trunk to 1.7 branch so that it is scheculed in next mini release.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: