Skip to content
Browse files

Remove assignment of new by reference. Add newline to die message.

git-svn-id: http://svn.php.net/repository/pear/pear-core/pear/pear-core/trunk@288048 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 8186c4f commit 567e684b3f3b89560d6af1d5a891539713bf272a saltybeagle committed Sep 4, 2009
Showing with 4 additions and 4 deletions.
  1. +2 −2 make-gopear-phar.php
  2. +2 −2 make-installpear-nozlib-phar.php
View
4 make-gopear-phar.php
@@ -32,7 +32,7 @@ function replaceVersion($contents, $path)
$dp = @scandir($peardir . '/go-pear-tarballs');
if ($dp === false) {
- die("while locating packages to install: opendir('" . $peardir . "/go-pear-tarballs') failed");
+ die("while locating packages to install: opendir('" . $peardir . "/go-pear-tarballs') failed\n");
}
$packages = array();
@@ -62,7 +62,7 @@ function replaceVersion($contents, $path)
chdir($peardir);
-$pkg = &new PEAR_PackageFile($config);
+$pkg = new PEAR_PackageFile($config);
$pf = $pkg->fromPackageFile($peardir . DIRECTORY_SEPARATOR . 'package2.xml', PEAR_VALIDATE_NORMAL);
if (PEAR::isError($pf)) {
foreach ($pf->getUserInfo() as $warn) {
View
4 make-installpear-nozlib-phar.php
@@ -32,7 +32,7 @@ function replaceVersion($contents, $path)
$dp = @scandir($peardir . '/go-pear-tarballs');
if ($dp === false) {
- die("while locating packages to install: opendir('" . $peardir . "/go-pear-tarballs') failed");
+ die("while locating packages to install: opendir('" . $peardir . "/go-pear-tarballs') failed\n");
}
$packages = array();
@@ -69,7 +69,7 @@ function replaceVersion($contents, $path)
chdir($peardir);
-$pkg = &new PEAR_PackageFile($config);
+$pkg = new PEAR_PackageFile($config);
$pf = $pkg->fromPackageFile($peardir . DIRECTORY_SEPARATOR . 'package2.xml', PEAR_VALIDATE_NORMAL);
if (PEAR::isError($pf)) {
foreach ($pf->getUserInfo() as $warn) {

0 comments on commit 567e684

Please sign in to comment.
Something went wrong with that request. Please try again.