X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fpear%2FPEAR%2FPackageFile%2FGenerator%2Fv1.php;h=5a963787ccbde6758c671d61017132157c25e0da;hb=90ff65cf45284f90b1c4e09fe575319b320f56ac;hp=2f42f178d595c8b57f7d7ac9838e2008af8c3109;hpb=afe2d051307ae2cd54bdb957f04e1d9f625f2dd9;p=timetracker.git diff --git a/WEB-INF/lib/pear/PEAR/PackageFile/Generator/v1.php b/WEB-INF/lib/pear/PEAR/PackageFile/Generator/v1.php index 2f42f178..5a963787 100644 --- a/WEB-INF/lib/pear/PEAR/PackageFile/Generator/v1.php +++ b/WEB-INF/lib/pear/PEAR/PackageFile/Generator/v1.php @@ -9,7 +9,6 @@ * @author Greg Beaver * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: v1.php 313023 2011-07-06 19:17:11Z dufuz $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.4.0a1 */ @@ -29,7 +28,7 @@ require_once 'PEAR/PackageFile/v2.php'; * @author Greg Beaver * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.9.4 + * @version Release: 1.10.1 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -39,14 +38,14 @@ class PEAR_PackageFile_Generator_v1 * @var PEAR_PackageFile_v1 */ var $_packagefile; - function PEAR_PackageFile_Generator_v1(&$packagefile) + function __construct(&$packagefile) { $this->_packagefile = &$packagefile; } function getPackagerVersion() { - return '1.9.4'; + return '1.10.1'; } /** @@ -109,7 +108,7 @@ class PEAR_PackageFile_Generator_v1 // }}} $packagexml = $this->toPackageFile($where, PEAR_VALIDATE_PACKAGING, 'package.xml', true); if ($packagexml) { - $tar =& new Archive_Tar($dest_package, $compress); + $tar = new Archive_Tar($dest_package, $compress); $tar->setErrorHandling(PEAR_ERROR_RETURN); // XXX Don't print errors // ----- Creates with the package.xml file $ok = $tar->createModify(array($packagexml), '', $where); @@ -168,9 +167,6 @@ class PEAR_PackageFile_Generator_v1 */ function _fixXmlEncoding($string) { - if (version_compare(phpversion(), '5.0.0', 'lt')) { - $string = utf8_encode($string); - } return strtr($string, array( '&' => '&', '>' => '>', @@ -200,7 +196,7 @@ class PEAR_PackageFile_Generator_v1 ); $ret = "\n"; $ret .= "\n"; - $ret .= "\n" . + $ret .= "\n" . " $pkginfo[package]"; if (isset($pkginfo['extends'])) { $ret .= "\n$pkginfo[extends]"; @@ -1178,13 +1174,15 @@ class PEAR_PackageFile_Generator_v1 } if (count($min)) { // get the highest minimum - $min = array_pop($a = array_flip($min)); + $a = array_flip($min); + $min = array_pop($a); } else { $min = false; } if (count($max)) { // get the lowest maximum - $max = array_shift($a = array_flip($max)); + $a = array_flip($max); + $max = array_shift($a); } else { $max = false; } @@ -1250,13 +1248,15 @@ class PEAR_PackageFile_Generator_v1 } if (count($min)) { // get the highest minimum - $min = array_pop($a = array_flip($min)); + $a = array_flip($min); + $min = array_pop($a); } else { $min = false; } if (count($max)) { // get the lowest maximum - $max = array_shift($a = array_flip($max)); + $a = array_flip($max); + $max = array_shift($a); } else { $max = false; } @@ -1281,4 +1281,4 @@ class PEAR_PackageFile_Generator_v1 return $ret; } } -?> \ No newline at end of file +?>