1
0
mirror of https://github.com/danog/dns.git synced 2025-01-22 21:41:11 +01:00

Merge branch 'master' into amp_v2

This commit is contained in:
Niklas Keller 2017-01-25 13:10:06 +01:00
commit 0941c4e779
2 changed files with 14 additions and 6 deletions

View File

@ -12,16 +12,24 @@ matrix:
- php: nightly
fast_finish: true
before_script:
- composer self-update
- composer install
env:
- DEPS=lowest
- DEPS=highest
install:
- if [ "$DEPS" = "lowest" ]; then
composer update -n --prefer-source --prefer-lowest;
else
composer update -n --prefer-source;
fi;
- composer show
script:
- phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
- php vendor/bin/php-cs-fixer --diff --dry-run -v fix
after_script:
- composer require satooshi/php-coveralls:dev-master
- composer require satooshi/php-coveralls dev-master
- php vendor/bin/coveralls -v
cache:

View File

@ -440,9 +440,9 @@ class DefaultResolver implements Resolver {
if (\strpos($uri, "://") !== false) {
return $uri;
}
if (($colonPos = \strrpos(":", $uri)) !== false) {
if (($colonPos = \strrpos($uri, ":")) !== false) {
$addr = \substr($uri, 0, $colonPos);
$port = \substr($uri, $colonPos);
$port = \substr($uri, $colonPos + 1);
} else {
$addr = $uri;
$port = 53;