From: Stig Bakken Date: Thu, 25 Apr 2002 09:13:55 +0000 (+0000) Subject: * fix warning X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~428 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03a52cd97c20eb46a1d2383ab2d49c32be242e4e;p=php * fix warning --- diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index 859edd6de5..3e58353629 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -257,6 +257,8 @@ class PEAR_Installer extends PEAR_Common } $oldcwd = getcwd(); $need_download = false; + // ==> XXX should be removed later on + $flag_old_format = false; if (preg_match('#^(http|ftp)://#', $pkgfile)) { $need_download = true; } elseif (!@is_file($pkgfile)) { @@ -341,8 +343,6 @@ class PEAR_Installer extends PEAR_Common // ----- Look for existing package file $descfile = $tmpdir . DIRECTORY_SEPARATOR . 'package.xml'; - // ==> XXX This part should be removed later on - $flag_old_format = false; if (!is_file($descfile)) { // ----- Look for old package archive format // In this format the package.xml file was inside the