svn: /pear2/Pyrus/trunk/src/Pyrus/Channel/ RemotePackage.php
[email protected] (Michael Gauthier)
| Newsgroups | php.pear.cvs,php.pear.core |
|---|---|
| Message-ID | <[email protected]> |
gauthierm Thu, 17 Jun 2010 15:54:53 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=300528
Log:
Fix minimum PHP version checks. If you had exactly the minimum version it was failing.
Changed paths:
U pear2/Pyrus/trunk/src/Pyrus/Channel/RemotePackage.php
Modified: pear2/Pyrus/trunk/src/Pyrus/Channel/RemotePackage.php
===================================================================
--- pear2/Pyrus/trunk/src/Pyrus/Channel/RemotePackage.php 2010-06-17 15:41:42 UTC (rev 300527)
+++ pear2/Pyrus/trunk/src/Pyrus/Channel/RemotePackage.php 2010-06-17 15:54:53 UTC (rev 300528)
@@ -313,7 +313,7 @@
foreach ($this->releaseList as $versioninfo) {
if (isset($versioninfo['m'])) {
// minimum PHP version required
- if (version_compare($versioninfo['m'], $this->getPHPVersion(), '>=')) {
+ if (version_compare($versioninfo['m'], $this->getPHPVersion(), '>')) {
continue;
}
}
@@ -655,7 +655,7 @@
foreach ($this->releaseList as $versioninfo) {
if (isset($versioninfo['m'])) {
// minimum PHP version required
- if (version_compare($versioninfo['m'], $this->getPHPVersion(), '>=')) {
+ if (version_compare($versioninfo['m'], $this->getPHPVersion(), '>')) {
continue;
}
}
@@ -716,7 +716,7 @@
if (!isset(\PEAR2\Pyrus\Main::$options['force']) && isset($versioninfo['m'])) {
// minimum PHP version required
- if (version_compare($versioninfo['m'], $this->getPHPVersion(), '>=')) {
+ if (version_compare($versioninfo['m'], $this->getPHPVersion(), '>')) {
$failIfExplicit($versioninfo);
continue;
}
@@ -833,4 +833,4 @@
$this->channel . '/' . $this->name .
' that can satisfy all dependencies');
}
-}
\ No newline at end of file
+}