1
0
Fork 0

Correctly match platform specific PHP version numbers

pull/3/merge
Nils Adermann 2011-06-27 00:12:51 +02:00
parent bc672deb32
commit c225b4c689
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class PlatformRepository extends ArrayRepository
try { try {
$version = BasePackage::parseVersion(PHP_VERSION); $version = BasePackage::parseVersion(PHP_VERSION);
} catch (\UnexpectedValueException $e) { } catch (\UnexpectedValueException $e) {
$version = BasePackage::parseVersion(preg_replace('#^(.+?)(-.+)?#', '$1', PHP_VERSION)); $version = BasePackage::parseVersion(preg_replace('#^(.+?)(-.+)?$#', '$1', PHP_VERSION));
} }
// TODO mark as type platform and create a special installer that skips it + one that throws an exception // TODO mark as type platform and create a special installer that skips it + one that throws an exception