From: Tomas V.V.Cox Date: Sun, 7 Oct 2001 20:14:11 +0000 (+0000) Subject: use the new System class for common file opperations X-Git-Tag: PRE_PARAMETER_PARSING_API~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b46e7d76b40395ddf68b6c71408555884f520b02;p=php use the new System class for common file opperations --- diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index 24fb4dfadf..e78f98a71e 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -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); }