cvs: pear /PEAR_PackageFileManager/PackageFileManager Cvs.php File.php Perforce.php Svn.php

From: Date: Tue, 25 Oct 2005 02:40:23 +0000
Subject: cvs: pear /PEAR_PackageFileManager/PackageFileManager Cvs.php File.php Perforce.php Svn.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35829@lists.php.net to get a copy of this message
cellog Mon Oct 24 22:40:23 2005 EDT Modified files: /pear/PEAR_PackageFileManager/PackageFileManager Cvs.php File.php Perforce.php Svn.php Log: on error, use the $_parent member instead of a static raiseError() call. This kills a fatal error if using PEAR_PFM2 http://cvs.php.net/diff.php/pear/PEAR_PackageFileManager/PackageFileManager/Cvs.php?r1=1.9&r2=1.10&ty=u Index: pear/PEAR_PackageFileManager/PackageFileManager/Cvs.php diff -u pear/PEAR_PackageFileManager/PackageFileManager/Cvs.php:1.9 pear/PEAR_PackageFileManager/PackageFileManager/Cvs.php:1.10 --- pear/PEAR_PackageFileManager/PackageFileManager/Cvs.php:1.9 Fri Mar 25 17:37:15 2005 +++ pear/PEAR_PackageFileManager/PackageFileManager/Cvs.php Mon Oct 24 22:40:22 2005 @@ -16,7 +16,7 @@ // | Web http://www.phpdoc.org | // | Mirror http://phpdocu.sourceforge.net/ | // +------------------------------------------------------------------------+ -// $Id: Cvs.php,v 1.9 2005/03/25 22:37:15 cellog Exp $ +// $Id: Cvs.php,v 1.10 2005/10/25 02:40:22 cellog Exp $ // /** * @package PEAR_PackageFileManager @@ -72,7 +72,7 @@ return parent::dirList($directory); } if (!$entries || !is_array($entries)) { - return PEAR_PackageFileManager::raiseError(PEAR_PACKAGEFILEMANAGER_NOCVSENTRIES, $directory); + return $this->_parent->raiseError(PEAR_PACKAGEFILEMANAGER_NOCVSENTRIES, $directory); } return $this->_readCVSEntries($entries); } http://cvs.php.net/diff.php/pear/PEAR_PackageFileManager/PackageFileManager/File.php?r1=1.24&r2=1.25&ty=u Index: pear/PEAR_PackageFileManager/PackageFileManager/File.php diff -u pear/PEAR_PackageFileManager/PackageFileManager/File.php:1.24 pear/PEAR_PackageFileManager/PackageFileManager/File.php:1.25 --- pear/PEAR_PackageFileManager/PackageFileManager/File.php:1.24 Thu Jul 21 00:17:02 2005 +++ pear/PEAR_PackageFileManager/PackageFileManager/File.php Mon Oct 24 22:40:22 2005 @@ -16,7 +16,7 @@ // | Web http://www.phpdoc.org | // | Mirror http://phpdocu.sourceforge.net/ | // +------------------------------------------------------------------------+ -// $Id: File.php,v 1.24 2005/07/21 04:17:02 cellog Exp $ +// $Id: File.php,v 1.25 2005/10/25 02:40:22 cellog Exp $ // /** * Retrieve the files from a directory listing @@ -94,7 +94,7 @@ return $allfiles; } if (!count($allfiles)) { - return PEAR_PackageFileManager::raiseError(PEAR_PACKAGEFILEMANAGER_NO_FILES, + return $this->_parent->raiseError(PEAR_PACKAGEFILEMANAGER_NO_FILES, substr($package_directory, 0, strlen($package_directory) - 1)); } $struc = array(); http://cvs.php.net/diff.php/pear/PEAR_PackageFileManager/PackageFileManager/Perforce.php?r1=1.2&r2=1.3&ty=u Index: pear/PEAR_PackageFileManager/PackageFileManager/Perforce.php diff -u pear/PEAR_PackageFileManager/PackageFileManager/Perforce.php:1.2 pear/PEAR_PackageFileManager/PackageFileManager/Perforce.php:1.3 --- pear/PEAR_PackageFileManager/PackageFileManager/Perforce.php:1.2 Wed Aug 25 02:02:30 2004 +++ pear/PEAR_PackageFileManager/PackageFileManager/Perforce.php Mon Oct 24 22:40:22 2005 @@ -12,7 +12,7 @@ * | obtain it through the world-wide-web, please send a note to | * | license@php.net so we can mail you a copy immediately. | * +------------------------------------------------------------------------+ - * $Id: Perforce.php,v 1.2 2004/08/25 06:02:30 jon Exp $ + * $Id: Perforce.php,v 1.3 2005/10/25 02:40:22 cellog Exp $ */ /** @@ -47,7 +47,7 @@ { /* Return an error if the directory does not exist. */ if (@is_dir($directory) === false) { - return PEAR_PackageFileManager::raiseError( + return $this->_parent->raiseError( PEAR_PACKAGEFILEMANAGER_DIR_DOESNT_EXIST, $directory); } http://cvs.php.net/diff.php/pear/PEAR_PackageFileManager/PackageFileManager/Svn.php?r1=1.1&r2=1.2&ty=u Index: pear/PEAR_PackageFileManager/PackageFileManager/Svn.php diff -u pear/PEAR_PackageFileManager/PackageFileManager/Svn.php:1.1 pear/PEAR_PackageFileManager/PackageFileManager/Svn.php:1.2 --- pear/PEAR_PackageFileManager/PackageFileManager/Svn.php:1.1 Mon May 31 08:02:31 2004 +++ pear/PEAR_PackageFileManager/PackageFileManager/Svn.php Mon Oct 24 22:40:22 2005 @@ -16,7 +16,7 @@ // | Web http://www.phpdoc.org | // | Mirror http://phpdocu.sourceforge.net/ | // +------------------------------------------------------------------------+ -// $Id: Svn.php,v 1.1 2004/05/31 12:02:31 arnaud Exp $ +// $Id: Svn.php,v 1.2 2005/10/25 02:40:22 cellog Exp $ // /** * @package PEAR_PackageFileManager @@ -75,7 +75,7 @@ return parent::dirList($directory); } if (!$entries || !is_array($entries)) { - return PEAR_PackageFileManager::raiseError(PEAR_PACKAGEFILEMANAGER_NOSVNENTRIES, $directory); + return $this->_parent->raiseError(PEAR_PACKAGEFILEMANAGER_NOSVNENTRIES, $directory); } return $this->_readSVNEntries($entries); }

« previous php.pear.cvs (#35829) next »