Index: trunk/library/PEAR/PEAR/Frontend/CLI.php
===================================================================
--- trunk/library/PEAR/PEAR/Frontend/CLI.php	(revision 7673)
+++ trunk/library/PEAR/PEAR/Frontend/CLI.php	(revision 7681)
@@ -106,5 +106,5 @@
                     $frame['function'] = !isset($frame['function']) ? '' : $frame['function'];
                     $frame['line']     = !isset($frame['line'])     ? '' : $frame['line'];
-                    $this->_displayLine("#$i: $frame[class]$frame[type]$frame[function] $frame[line]");
+                    $this->_displayLine("#$i: {$frame['class']}{$frame['type']}{$frame['function']}{$frame['line']}");
                 }
             }
Index: trunk/library/PEAR/PEAR/Installer.php
===================================================================
--- trunk/library/PEAR/PEAR/Installer.php	(revision 5146)
+++ trunk/library/PEAR/PEAR/Installer.php	(revision 7681)
@@ -236,5 +236,5 @@
 
             if ((bool) $os->matchSignature($platform) === $negate) {
-                $this->log(3, "skipped $file (meant for $atts[platform], we are ".$os->getSignature().")");
+                $this->log(3, "skipped $file (meant for {$atts['platform']}, we are ".$os->getSignature().")");
                 return PEAR_INSTALLER_SKIPPED;
             }
@@ -264,5 +264,5 @@
                 break;
             default:
-                return $this->raiseError("Invalid role `$atts[role]' for file $file");
+                return $this->raiseError("Invalid role '{$atts['role']}' for file $file");
         }
 
@@ -354,8 +354,8 @@
                     if ($a['type'] == 'php-const') {
                         if (preg_match('/^[a-z0-9_]+\\z/i', $a['to'])) {
-                            eval("\$to = $a[to];");
+                            eval("\$to = {$a['to']};");
                         } else {
                             if (!isset($options['soft'])) {
-                                $this->log(0, "invalid php-const replacement: $a[to]");
+                                $this->log(0, "invalid php-const replacement: {$a['to']}");
                             }
                             continue;
@@ -374,5 +374,5 @@
                         if (is_null($to)) {
                             if (!isset($options['soft'])) {
-                                $this->log(0, "invalid pear-config replacement: $a[to]");
+                                $this->log(0, "invalid pear-config replacement: {$a['to']}");
                             }
                             continue;
@@ -383,5 +383,5 @@
                         } else {
                             if (!isset($options['soft'])) {
-                                $this->log(0, "invalid package-info replacement: $a[to]");
+                                $this->log(0, "invalid package-info replacement: {$a['to']}");
                             }
                             continue;
@@ -1586,5 +1586,5 @@
                 }
 
-                $this->log(3, "+ cp $ext[file] $copyto");
+                $this->log(3, "+ cp {$ext['file']} $copyto");
                 $this->addFileOperation('rename', array($ext['file'], $copyto));
                 if (!OS_WINDOWS) {
Index: trunk/library/PEAR/PEAR/Downloader.php
===================================================================
--- trunk/library/PEAR/PEAR/Downloader.php	(revision 7655)
+++ trunk/library/PEAR/PEAR/Downloader.php	(revision 7681)
@@ -1633,5 +1633,5 @@
 
             if (isset($lastmodified['ETag'])) {
-                $ifmodifiedsince .= "If-None-Match: $lastmodified[ETag]\r\n";
+                $ifmodifiedsince .= "If-None-Match: {$lastmodified['ETag']}\r\n";
             }
         } else {
Index: trunk/library/PEAR/PEAR/PackageFile/Generator/v1.php
===================================================================
--- trunk/library/PEAR/PEAR/PackageFile/Generator/v1.php	(revision 5146)
+++ trunk/library/PEAR/PEAR/PackageFile/Generator/v1.php	(revision 7681)
@@ -204,5 +204,5 @@
 " <name>$pkginfo[package]</name>";
         if (isset($pkginfo['extends'])) {
-            $ret .= "\n<extends>$pkginfo[extends]</extends>";
+            $ret .= "\n<extends>{$pkginfo['extends']}</extends>";
         }
         $ret .=
@@ -251,14 +251,14 @@
         $ret = "$indent <release>\n";
         if (!empty($pkginfo['version'])) {
-            $ret .= "$indent  <version>$pkginfo[version]</version>\n";
+            $ret .= "$indent  <version>{$pkginfo['version']}</version>\n";
         }
         if (!empty($pkginfo['release_date'])) {
-            $ret .= "$indent  <date>$pkginfo[release_date]</date>\n";
+            $ret .= "$indent  <date>{$pkginfo['release_date']}</date>\n";
         }
         if (!empty($pkginfo['release_license'])) {
-            $ret .= "$indent  <license>$pkginfo[release_license]</license>\n";
+            $ret .= "$indent  <license>{$pkginfo['release_license']}</license>\n";
         }
         if (!empty($pkginfo['release_state'])) {
-            $ret .= "$indent  <state>$pkginfo[release_state]</state>\n";
+            $ret .= "$indent  <state>{$pkginfo['release_state']}</state>\n";
         }
         if (!empty($pkginfo['release_notes'])) {
@@ -272,13 +272,13 @@
             $ret .= "$indent  <deps>\n";
             foreach ($pkginfo['release_deps'] as $dep) {
-                $ret .= "$indent   <dep type=\"$dep[type]\" rel=\"$dep[rel]\"";
+                $ret .= "$indent   <dep type=\"{$dep['type']}\" rel=\"{$dep['rel']}\"";
                 if (isset($dep['version'])) {
-                    $ret .= " version=\"$dep[version]\"";
+                    $ret .= " version=\"{$dep['version']}\"";
                 }
                 if (isset($dep['optional'])) {
-                    $ret .= " optional=\"$dep[optional]\"";
+                    $ret .= " optional=\"{$dep['optional']}\"";
                 }
                 if (isset($dep['name'])) {
-                    $ret .= ">$dep[name]</dep>\n";
+                    $ret .= ">{$dep['name']}</dep>\n";
                 } else {
                     $ret .= "/>\n";
@@ -302,8 +302,8 @@
         if (isset($pkginfo['provides'])) {
             foreach ($pkginfo['provides'] as $key => $what) {
-                $ret .= "$indent  <provides type=\"$what[type]\" ";
-                $ret .= "name=\"$what[name]\" ";
+                $ret .= "$indent  <provides type=\"{$what['type']}\" ";
+                $ret .= "name=\"{$what['name']}\" ";
                 if (isset($what['extends'])) {
-                    $ret .= "extends=\"$what[extends]\" ";
+                    $ret .= "extends=\"{$what['extends']}\" ";
                 }
                 $ret .= "/>\n";
@@ -319,5 +319,5 @@
                         $fa['role'] = '';
                     }
-                    $ret .= "$indent   <file role=\"$fa[role]\"";
+                    $ret .= "$indent   <file role=\"{$fa['role']}\"";
                     if (isset($fa['baseinstalldir'])) {
                         $ret .= ' baseinstalldir="' .
@@ -325,8 +325,8 @@
                     }
                     if (isset($fa['md5sum'])) {
-                        $ret .= " md5sum=\"$fa[md5sum]\"";
+                        $ret .= " md5sum=\"{$fa['md5sum']}\"";
                     }
                     if (isset($fa['platform'])) {
-                        $ret .= " platform=\"$fa[platform]\"";
+                        $ret .= " platform=\"{$fa['platform']}\"";
                     }
                     if (!empty($fa['install-as'])) {
@@ -427,5 +427,5 @@
     function _formatFile($file, $attributes, $indent)
     {
-        $ret = "$indent   <file role=\"$attributes[role]\"";
+        $ret = "$indent   <file role=\"{$attributes['role']}\"";
         if (isset($attributes['baseinstalldir'])) {
             $ret .= ' baseinstalldir="' .
@@ -433,8 +433,8 @@
         }
         if (isset($attributes['md5sum'])) {
-            $ret .= " md5sum=\"$attributes[md5sum]\"";
+            $ret .= " md5sum=\"{$attributes['md5sum']}\"";
         }
         if (isset($attributes['platform'])) {
-            $ret .= " platform=\"$attributes[platform]\"";
+            $ret .= " platform=\"{$attributes['platform']}\"";
         }
         if (!empty($attributes['install-as'])) {
Index: trunk/library/PEAR/PEAR/PackageFile/Parser/v1.php
===================================================================
--- trunk/library/PEAR/PEAR/PackageFile/Parser/v1.php	(revision 5146)
+++ trunk/library/PEAR/PEAR/PackageFile/Parser/v1.php	(revision 7681)
@@ -269,5 +269,5 @@
                 }
                 $attribs['explicit'] = true;
-                $this->_packageInfo['provides']["$attribs[type];$attribs[name]"] = $attribs;
+                $this->_packageInfo['provides']["{$attribs['type']};{$attribs['name']}"] = $attribs;
                 break;
             case 'package' :
Index: trunk/library/PEAR/PEAR/ChannelFile.php
===================================================================
--- trunk/library/PEAR/PEAR/ChannelFile.php	(revision 5146)
+++ trunk/library/PEAR/PEAR/ChannelFile.php	(revision 7681)
@@ -459,5 +459,5 @@
             . $channelInfo['attribs']['version'] . " http://pear.php.net/dtd/channel-" .
             $channelInfo['attribs']['version'] . ".xsd\">
- <name>$channelInfo[name]</name>
+ <name>{$channelInfo['name']}</name>
  <summary>" . htmlspecialchars($channelInfo['summary'])."</summary>
 ";
Index: trunk/library/PEAR/PEAR/Task/Replace.php
===================================================================
--- trunk/library/PEAR/PEAR/Task/Replace.php	(revision 5146)
+++ trunk/library/PEAR/PEAR/Task/Replace.php	(revision 7681)
@@ -124,5 +124,5 @@
                         $to = $chan->getServer();
                     } else {
-                        $this->logger->log(0, "$dest: invalid pear-config replacement: $a[to]");
+                        $this->logger->log(0, "$dest: invalid pear-config replacement: {$a['to']}");
                         return false;
                     }
@@ -140,5 +140,5 @@
                 }
                 if (is_null($to)) {
-                    $this->logger->log(0, "$dest: invalid pear-config replacement: $a[to]");
+                    $this->logger->log(0, "$dest: invalid pear-config replacement: {$a['to']}");
                     return false;
                 }
@@ -150,5 +150,5 @@
                     $to = constant($a['to']);
                 } else {
-                    $this->logger->log(0, "$dest: invalid php-const replacement: $a[to]");
+                    $this->logger->log(0, "$dest: invalid php-const replacement: {$a['to']}");
                     return false;
                 }
@@ -157,5 +157,5 @@
                     $to = $t;
                 } else {
-                    $this->logger->log(0, "$dest: invalid package-info replacement: $a[to]");
+                    $this->logger->log(0, "$dest: invalid package-info replacement: {$a['to']}");
                     return false;
                 }
Index: trunk/library/PEAR/PEAR/REST.php
===================================================================
--- trunk/library/PEAR/PEAR/REST.php	(revision 5146)
+++ trunk/library/PEAR/PEAR/REST.php	(revision 7681)
@@ -377,5 +377,5 @@
 
             if (isset($lastmodified['ETag'])) {
-                $ifmodifiedsince .= "If-None-Match: $lastmodified[ETag]\r\n";
+                $ifmodifiedsince .= "If-None-Match: {$lastmodified['ETag']}\r\n";
             }
         } else {
Index: trunk/library/PEAR/PEAR/Builder.php
===================================================================
--- trunk/library/PEAR/PEAR/Builder.php	(revision 5146)
+++ trunk/library/PEAR/PEAR/Builder.php	(revision 7681)
@@ -333,7 +333,7 @@
                 if (substr($o['name'], 0, 5) == 'with-' &&
                     ($r == 'yes' || $r == 'autodetect')) {
-                    $configure_command .= " --$o[name]";
+                    $configure_command .= " --{$o['name']}";
                 } else {
-                    $configure_command .= " --$o[name]=".trim($r);
+                    $configure_command .= " --{$o['name']}=".trim($r);
                 }
             }
Index: trunk/library/PEAR/PEAR/Command/Remote.php
===================================================================
--- trunk/library/PEAR/PEAR/Command/Remote.php	(revision 7655)
+++ trunk/library/PEAR/PEAR/Command/Remote.php	(revision 7681)
@@ -623,5 +623,5 @@
         $downloaded = $downloader->getDownloadedPackages();
         foreach ($downloaded as $pkg) {
-            $this->ui->outputData("File $pkg[file] downloaded", $command);
+            $this->ui->outputData("File {$pkg['file']} downloaded", $command);
         }
 
Index: trunk/library/PEAR/PEAR/Command/Registry.php
===================================================================
--- trunk/library/PEAR/PEAR/Command/Registry.php	(revision 5146)
+++ trunk/library/PEAR/PEAR/Command/Registry.php	(revision 7681)
@@ -514,5 +514,5 @@
                                 $mstr .= $m['handle'] . '@php.net';
                             }
-                            $mstr .= "> ($m[role])";
+                            $mstr .= "> ({$m['role']})";
                         }
                         $info[$key] = $mstr;
@@ -866,5 +866,5 @@
                     $info[$infoindex] .= "$type $name";
                     if (isset($package['uri'])) {
-                        $info[$infoindex] .= "\n  Download URI: $package[uri]";
+                        $info[$infoindex] .= "\n  Download URI: {$package['uri']}";
                         continue;
                     }
@@ -882,5 +882,5 @@
 
                     if (isset($package['recommended'])) {
-                        $info[$infoindex] .= "\n  Recommended version: $package[recommended]";
+                        $info[$infoindex] .= "\n  Recommended version: {$package['recommended']}";
                     }
 
@@ -920,8 +920,8 @@
                         $info['Not Compatible with'] .= "\n";
                     }
-                    $info['Not Compatible with'] .= "$os[name] Operating System";
+                    $info['Not Compatible with'] .= "{$os['name']} Operating System";
                 } else {
                     $info['Required Dependencies'] .= "\n";
-                    $info['Required Dependencies'] .= "$os[name] Operating System";
+                    $info['Required Dependencies'] .= "{$os['name']} Operating System";
                 }
             }
@@ -940,8 +940,8 @@
                         $info['Not Compatible with'] .= "\n";
                     }
-                    $info['Not Compatible with'] .= "OS/Arch matching pattern '/$os[pattern]/'";
+                    $info['Not Compatible with'] .= "OS/Arch matching pattern '/{$os['pattern']}/'";
                 } else {
                     $info['Required Dependencies'] .= "\n";
-                    $info['Required Dependencies'] .= "OS/Arch matching pattern '/$os[pattern]/'";
+                    $info['Required Dependencies'] .= "OS/Arch matching pattern '/{$os['pattern']}/'";
                 }
             }
@@ -1006,5 +1006,5 @@
 
                         if (isset($package['recommended'])) {
-                            $info[$infoindex] .= "\n  Recommended version: $package[recommended]";
+                            $info[$infoindex] .= "\n  Recommended version: {$package['recommended']}";
                         }
 
@@ -1066,5 +1066,5 @@
                                 }
 
-                                $info[$groupindex] .= "\n  Download URI: $package[uri]";
+                                $info[$groupindex] .= "\n  Download URI: {$package['uri']}";
                                 continue;
                             }
@@ -1088,5 +1088,5 @@
 
                             if (isset($package['recommended'])) {
-                                $info[$groupindex] .= "\n  Recommended version: $package[recommended]";
+                                $info[$groupindex] .= "\n  Recommended version: {$package['recommended']}";
                             }
 
@@ -1119,5 +1119,5 @@
                 if (isset($package['uri'])) {
                     $info['Bundled Packages'] .= '__uri/' . $package['name'];
-                    $info['Bundled Packages'] .= "\n  (URI: $package[uri]";
+                    $info['Bundled Packages'] .= "\n  (URI: {$package['uri']}";
                 } else {
                     $info['Bundled Packages'] .= $package['channel'] . '/' . $package['name'];
Index: trunk/library/PEAR/PEAR/Command/Common.php
===================================================================
--- trunk/library/PEAR/PEAR/Command/Common.php	(revision 5146)
+++ trunk/library/PEAR/PEAR/Command/Common.php	(revision 7681)
@@ -223,6 +223,6 @@
                         $lapp = "[=$arg]";
                     } else {
-                        $sapp = " $v[arg]";
-                        $lapp = "=$v[arg]";
+                        $sapp = " {$v['arg']}";
+                        $lapp = "={$v['arg']}";
                     }
                 } else {
