logo       
Google Custom Search
    AddThis Social Bookmark Button

cvs: pear-core /PEAR/PackageFile/v2 Validator.php: msg#00189

Subject: cvs: pear-core /PEAR/PackageFile/v2 Validator.php
cellog          Fri May 20 18:15:33 2005 EDT

  Modified files:              
    /pear-core/PEAR/PackageFile/v2      Validator.php 
  Log:
  fix fatal error in php 5 when using outside the installer
  with no logger
  
http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/v2/Validator.php?r1=1.63&r2=1.64&ty=u
Index: pear-core/PEAR/PackageFile/v2/Validator.php
diff -u pear-core/PEAR/PackageFile/v2/Validator.php:1.63 
pear-core/PEAR/PackageFile/v2/Validator.php:1.64
--- pear-core/PEAR/PackageFile/v2/Validator.php:1.63    Thu May 12 00:23:56 2005
+++ pear-core/PEAR/PackageFile/v2/Validator.php Fri May 20 18:15:32 2005
@@ -17,7 +17,7 @@
 // |                                                                      |
 // +----------------------------------------------------------------------+
 //
-// $Id: Validator.php,v 1.63 2005/05/12 04:23:56 cellog Exp $
+// $Id: Validator.php,v 1.64 2005/05/20 22:15:32 cellog Exp $
 /**
  * Private validation class used by PEAR_PackageFile_v2 - do not use directly, 
its
  * sole purpose is to split up the PEAR/PackageFile/v2.php file to make it 
smaller
@@ -1620,8 +1620,9 @@
             return false;
         }
         $dir_prefix = dirname($this->_pf->_packageFile);
+        $common = new PEAR_Common;
         $log = isset($this->_pf->_logger) ? array(&$this->_pf->_logger, 'log') 
:
-            array('PEAR_Common', 'log');
+            array(&$common, 'log');
         $info = $this->_pf->getContents();
         $info = $info['dir']['file'];
         if (isset($info['attribs'])) {




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>