diff options
author | taca <taca@pkgsrc.org> | 2015-12-11 16:16:48 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2015-12-11 16:16:48 +0000 |
commit | 06fea984605b979d8d0d8376445ffd42f46fb48f (patch) | |
tree | e68b536517848475f75d7fef260b9a2dc397a144 /lang/php | |
parent | 29f102bd5df0693ae5d69ee63e6b5c8967bb1733 (diff) | |
download | pkgsrc-06fea984605b979d8d0d8376445ffd42f46fb48f.tar.gz |
Avoid to use deprecated syntax. Fix runtime problem with PHP 7.
Diffstat (limited to 'lang/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'; |