]> granicus.if.org Git - php/commitdiff
use the new System class for common file opperations
authorTomas V.V.Cox <cox@php.net>
Sun, 7 Oct 2001 20:14:11 +0000 (20:14 +0000)
committerTomas V.V.Cox <cox@php.net>
Sun, 7 Oct 2001 20:14:11 +0000 (20:14 +0000)
pear/PEAR/Common.php

index 24fb4dfadfb59661f3b23ad274e146dd40f6aaad..e78f98a71ecfadf460a5a348ee28835fe3051661 100644 (file)
@@ -22,6 +22,7 @@
 
 require_once 'PEAR.php';
 require_once 'Archive/Tar.php';
+require_once 'Experimental/System.php';
 
 /**
 * TODO:
@@ -78,7 +79,7 @@ class PEAR_Common extends PEAR
                $file = array_shift($this->_tempfiles))
         {
             if (@is_dir($file)) {
-                system("rm -rf $file"); // XXX FIXME Windows
+                System::rm("-rf $file"); // XXX FIXME Windows
             } elseif (file_exists($file)) {
                 unlink($file);
             }