cvs: pear-core /PEAR Common.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Thu, 14 May 2009 01:41:33 +0000 |
| Subject: | cvs: pear-core /PEAR Common.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-8404@lists.php.net to get a copy of this message | ||
dufuz Thu May 14 01:41:33 2009 UTC
Modified files:
/pear-core/PEAR Common.php
Log:
use one unset call
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/Common.php?r1=1.168&r2=1.169&diff_format=u
Index: pear-core/PEAR/Common.php
diff -u pear-core/PEAR/Common.php:1.168 pear-core/PEAR/Common.php:1.169
--- pear-core/PEAR/Common.php:1.168 Fri Mar 27 19:35:47 2009
+++ pear-core/PEAR/Common.php Thu May 14 01:41:33 2009
@@ -11,7 +11,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2009 The Authors
* @license http://opensource.org/licenses/bsd-license.php
New BSD License
- * @version CVS: $Id: Common.php,v 1.168 2009/03/27 19:35:47 dufuz Exp $
+ * @version CVS: $Id: Common.php,v 1.169 2009/05/14 01:41:33 dufuz Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1.0
* @deprecated File deprecated since Release 1.4.0a1
@@ -564,23 +564,11 @@
// changelog is not converted to old format.
$arr = $pf->toArray(true);
$arr = array_merge($arr, $arr['old']);
- unset($arr['old']);
- unset($arr['xsdversion']);
- unset($arr['contents']);
- unset($arr['compatible']);
- unset($arr['channel']);
- unset($arr['uri']);
- unset($arr['dependencies']);
- unset($arr['phprelease']);
- unset($arr['extsrcrelease']);
- unset($arr['zendextsrcrelease']);
- unset($arr['extbinrelease']);
- unset($arr['zendextbinrelease']);
- unset($arr['bundle']);
- unset($arr['lead']);
- unset($arr['developer']);
- unset($arr['helper']);
- unset($arr['contributor']);
+ unset($arr['old'], $arr['xsdversion'], $arr['contents'],
$arr['compatible'],
+ $arr['channel'], $arr['uri'], $arr['dependencies'],
$arr['phprelease'],
+ $arr['extsrcrelease'], $arr['zendextsrcrelease'],
$arr['extbinrelease'],
+ $arr['zendextbinrelease'], $arr['bundle'],
$arr['lead'], $arr['developer'],
+ $arr['helper'], $arr['contributor']);
$arr['filelist'] = $pf->getFilelist();
$this->pkginfo = $arr;
return $arr;