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

View File

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