Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/5378' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Oct 30, 2013
2 parents 4f7d41f + 1afa923 commit 8b90718
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server.php
Expand Up @@ -939,7 +939,7 @@ public function registerFaultException($class)
$this->registerFaultException($row);
}

} elseif (is_string($class) && class_exists($class) && is_subclass_of($class, 'Exception')) {
} elseif (is_string($class) && class_exists($class) && (is_subclass_of($class, 'Exception') || 'Exception' === $class)) {
$ref = new ReflectionClass($class);

$this->faultExceptions[] = $ref->getName();
Expand Down
1 change: 1 addition & 0 deletions test/ServerTest.php
Expand Up @@ -710,6 +710,7 @@ public function testIsRegisteredAsFaultException($exception)
public function dataProviderForRegisterFaultException()
{
return array(
array('Exception'),
array('Zend\Soap\Exception\InvalidArgumentException'),
array('InvalidArgumentException'),
array('Zend\Server\Exception\RuntimeException'),
Expand Down

0 comments on commit 8b90718

Please sign in to comment.