From 61e6878898603eae6d9f95db43e100097eff5faa Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sat, 1 Nov 2003 05:17:40 +0000 Subject: [PATCH] might as well, someone will try it someday --- pear/PEAR/Dependency.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pear/PEAR/Dependency.php b/pear/PEAR/Dependency.php index 198422fd5f..d3501d6abb 100644 --- a/pear/PEAR/Dependency.php +++ b/pear/PEAR/Dependency.php @@ -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); } -- 2.50.1