diff options
author | taca <taca> | 2015-12-11 16:16:48 +0000 |
---|---|---|
committer | taca <taca> | 2015-12-11 16:16:48 +0000 |
commit | 7647da970ebd07d56821a7a78f0cf8fe9ea7f697 (patch) | |
tree | e68b536517848475f75d7fef260b9a2dc397a144 /lang/php/pear_plist.php | |
parent | b676b51d428f805cc0423cd663fbc710d89ee503 (diff) | |
download | pkgsrc-7647da970ebd07d56821a7a78f0cf8fe9ea7f697.tar.gz |
Avoid to use deprecated syntax. Fix runtime problem with PHP 7.
Diffstat (limited to 'lang/php/pear_plist.php')
-rw-r--r-- | lang/php/pear_plist.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lang/php/pear_plist.php b/lang/php/pear_plist.php index b106c755e6c..ed3ea09d813 100644 --- a/lang/php/pear_plist.php +++ b/lang/php/pear_plist.php @@ -1,5 +1,5 @@ <?php -# $NetBSD: pear_plist.php,v 1.8 2010/08/29 06:08:07 obache Exp $ +# $NetBSD: pear_plist.php,v 1.9 2015/12/11 16:16:48 taca Exp $ # Parses package XML file and outputs appropriate PLIST include_once "PEAR/Registry.php"; @@ -10,14 +10,14 @@ $PEAR_LIB = getenv('PEAR_LIB'); $WRKSRC = getenv('WRKSRC'); if(! $DESTDIR = getenv('DESTDIR')) $DESTDIR=''; -$config = &PEAR_Config::singleton(); -$package = &new PEAR_PackageFile($config); +$config = PEAR_Config::singleton(); +$package = new PEAR_PackageFile($config); $info = $package->fromAnyFile("$WRKSRC/package.xml", PEAR_VALIDATE_INSTALLING); $pkg = $info->getName(); $channel = $info->getChannel(); -$registry = &new PEAR_Registry($DESTDIR.$PREFIX."/".$PEAR_LIB); +$registry = new PEAR_Registry($DESTDIR.$PREFIX."/".$PEAR_LIB); $flist = $registry->packageInfo($pkg, 'filelist', $channel); $regfile = $PEAR_LIB.'/.registry/.channel.'.$channel.'/'.strtolower($pkg).'.reg'; |