diff --git a/package.xml b/package.xml index 3ae50f7..967c8eb 100644 --- a/package.xml +++ b/package.xml @@ -13,10 +13,10 @@ This package abstracts this away, so that when you want to get exactly N amount boen.robot@gmail.com yes - 2016-11-07 - + 2017-05-13 + - 1.0.0b1 + 1.0.0b2 1.0.0 @@ -24,9 +24,8 @@ This package abstracts this away, so that when you want to get exactly N amount stable LGPL License 2.1 - * Fixed a streaming issue with newer PHP 5.6 versions and later. -* Stream::setIsBlocking() is only implicitly called if needed (i.e. for encrypted connections), ensuring compatibility with web hosts that for bizzare reasons have disabled stream_set_blocking(). -* Doc and test fixes that now ensure large code coverage. + * Fixed "failed to parse address" error that occurs in patched PHP versions for Debian 7 and Ubuntu 16.04. + - **NOTE:** Persistent connections still fail in those environments, and there's no possible workaround, short of getting a non-patched PHP version or upgrading to Debian 8 or Ubuntu 16.10. @@ -40,7 +39,9 @@ This package abstracts this away, so that when you want to get exactly N amount - + + + diff --git a/packagexmlsetup.php b/packagexmlsetup.php index 2e6be3d..fbbb8b4 100644 --- a/packagexmlsetup.php +++ b/packagexmlsetup.php @@ -76,6 +76,8 @@ $oldCwd = getcwd(); chdir(__DIR__); + $package->setRawRelease('php', ''); + $release = $package->getReleaseToInstall('php'); foreach (new RecursiveIteratorIterator( new RecursiveDirectoryIterator( '.', @@ -84,8 +86,12 @@ ), RecursiveIteratorIterator::LEAVES_ONLY ) as $path) { - $filename = substr($path->getPathname(), 2); - $cFilename = str_replace('src/', 'php/', $filename); + if ('.git' === $path->getFilename()) { + continue; + } + + $filename = substr($path->getPathname(), 2); + $cFilename = str_replace('src/', 'php/', $filename); if (isset($package->files[$filename])) { $parsedFilename = pathinfo($filename); @@ -107,7 +113,7 @@ $as = substr($as, 0, -4); } } - $package->getReleaseToInstall('php')->installAs($filename, $as); + $release->installAs($filename, $as); $contents = file_get_contents($filename); foreach ($config['replace'] as $from => $attribs) {