[Bps-public-commit] r15114 - in Class-Require/trunk: lib/Class

sartak at bestpractical.com sartak at bestpractical.com
Wed Aug 13 06:12:15 EDT 2008


Author: sartak
Date: Wed Aug 13 06:12:14 2008
New Revision: 15114

Modified:
   Class-Require/trunk/   (props changed)
   Class-Require/trunk/lib/Class/Require.pm

Log:
 r69463 at onn:  sartak | 2008-08-13 06:11:09 -0400
 If we fail to load a class, remove traces from it from %INC so is_class_loaded returns false


Modified: Class-Require/trunk/lib/Class/Require.pm
==============================================================================
--- Class-Require/trunk/lib/Class/Require.pm	(original)
+++ Class-Require/trunk/lib/Class/Require.pm	Wed Aug 13 06:12:14 2008
@@ -36,6 +36,7 @@
         1;
     };
 
+    delete $INC{$file};
     $ERROR = $@;
     return 0;
 }



More information about the Bps-public-commit mailing list