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

Commit

Permalink
Merge branch 'master' into hotfix/ZF-3821
Browse files Browse the repository at this point in the history
Conflicts:
	tests/Zend/InfoCard/XmlParsingTest.php
  • Loading branch information
Pádraic Brady committed Aug 26, 2011
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 2 deletions.
Empty file modified src/Exception.php
100644 → 100755
Empty file.
Empty file modified src/Exception/InvalidArgumentException.php
100644 → 100755
Empty file.
Empty file modified src/Exception/InvalidUriException.php
100644 → 100755
Empty file.
Empty file modified src/Exception/InvalidUriPartException.php
100644 → 100755
Empty file.
Empty file modified src/Exception/InvalidUriTypeException.php
100644 → 100755
Empty file.
Empty file modified src/File.php
100644 → 100755
Empty file.
10 changes: 10 additions & 0 deletions src/Http.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,14 @@ protected function parseUserInfo()
$this->setUser($user);
$this->setPassword($password);
}

public function getPort()
{
if (empty($this->port)) {
if (array_key_exists($this->scheme, self::$defaultPorts)) {
$this->port= self::$defaultPorts[$this->scheme];
}
}
return $this->port;
}
}
Empty file modified src/Mailto.php
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/Uri.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public function parse($uri)
$port = substr($authority, $colonPos + 1);
if ($port) {
$this->setPort((int) $port);
}
}
$authority = substr($authority, 0, $colonPos);
}

Expand Down
2 changes: 1 addition & 1 deletion src/UriFactory.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ abstract class UriFactory
static public function registerScheme($scheme, $class)
{
$scheme = strtolower($scheme);
static::$_schemeClasses[$scheme] = $class;
static::$schemeClasses[$scheme] = $class;
}

/**
Expand Down

0 comments on commit 6279a0a

Please sign in to comment.