diff options
author | taca <taca> | 2015-12-11 16:16:48 +0000 |
---|---|---|
committer | taca <taca> | 2015-12-11 16:16:48 +0000 |
commit | f185909fddfc35318a7688c8529332416d5d6559 (patch) | |
tree | e68b536517848475f75d7fef260b9a2dc397a144 /lang/php | |
parent | b2b1df4cf3ac93cd7e5d89d18f9551d4bbd4c48f (diff) | |
download | pkgsrc-f185909fddfc35318a7688c8529332416d5d6559.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'; |