]> granicus.if.org Git - php/commitdiff
might as well, someone will try it someday
authorGreg Beaver <cellog@php.net>
Sat, 1 Nov 2003 05:17:40 +0000 (05:17 +0000)
committerGreg Beaver <cellog@php.net>
Sat, 1 Nov 2003 05:17:40 +0000 (05:17 +0000)
pear/PEAR/Dependency.php

index 198422fd5f37a162ef9c5f9c404c3e52bf1efe0d..d3501d6abb2f4d48fda3fa6c19e2fc197df7dfd5 100644 (file)
@@ -318,6 +318,10 @@ class PEAR_Dependency
         if ($relation == 'has') {
             return false;
         }
+        if ($relation == 'not') {
+            $errmsg = "Invalid dependency - 'not' is allowed when specifying PHP, you must run PHP in PHP"
+            return PEAR_DEPENDENCY_BAD_DEPENDENCY;
+        }
         if (substr($req, 0, 2) == 'v.') {
             $req = substr($req,2, strlen($req) - 2);
         }