summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2002-05-19 16:32:18 +0000
committerStig Bakken <ssb@php.net>2002-05-19 16:32:18 +0000
commitf19b566a40b0454e9325c38d1c75150c36fabd43 (patch)
tree1e453ed7b035e5cffa61ea8ab622be96583c7379
parentf36118906762af22f9f04e780a6d612feb31ef87 (diff)
downloadphp-git-f19b566a40b0454e9325c38d1c75150c36fabd43.tar.gz
* compat fix
-rw-r--r--pear/PEAR/Dependency.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/pear/PEAR/Dependency.php b/pear/PEAR/Dependency.php
index 3b6f6a7684..4afe9b8671 100644
--- a/pear/PEAR/Dependency.php
+++ b/pear/PEAR/Dependency.php
@@ -90,6 +90,9 @@ class PEAR_Dependency
*/
function checkPackage($name, $req = null, $relation = 'has')
{
+ if (substr($relation, 0, 2) == "v.") {
+ $relation = substr($relation, 2);
+ }
switch ($relation) {
case 'has':
if (!$this->registry->packageExists($name)) {
@@ -254,4 +257,4 @@ class PEAR_Dependency
}
}
-?> \ No newline at end of file
+?>