Changeset 7681 for trunk/library
- Timestamp:
- 12/19/12 16:44:18 (11 years ago)
- Location:
- trunk/library/PEAR/PEAR
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/library/PEAR/PEAR/Builder.php
r5146 r7681 333 333 if (substr($o['name'], 0, 5) == 'with-' && 334 334 ($r == 'yes' || $r == 'autodetect')) { 335 $configure_command .= " -- $o[name]";335 $configure_command .= " --{$o['name']}"; 336 336 } else { 337 $configure_command .= " -- $o[name]=".trim($r);337 $configure_command .= " --{$o['name']}=".trim($r); 338 338 } 339 339 } -
trunk/library/PEAR/PEAR/ChannelFile.php
r5146 r7681 459 459 . $channelInfo['attribs']['version'] . " http://pear.php.net/dtd/channel-" . 460 460 $channelInfo['attribs']['version'] . ".xsd\"> 461 <name> $channelInfo[name]</name>461 <name>{$channelInfo['name']}</name> 462 462 <summary>" . htmlspecialchars($channelInfo['summary'])."</summary> 463 463 "; -
trunk/library/PEAR/PEAR/Command/Common.php
r5146 r7681 223 223 $lapp = "[=$arg]"; 224 224 } else { 225 $sapp = " $v[arg]";226 $lapp = "= $v[arg]";225 $sapp = " {$v['arg']}"; 226 $lapp = "={$v['arg']}"; 227 227 } 228 228 } else { -
trunk/library/PEAR/PEAR/Command/Registry.php
r5146 r7681 514 514 $mstr .= $m['handle'] . '@php.net'; 515 515 } 516 $mstr .= "> ( $m[role])";516 $mstr .= "> ({$m['role']})"; 517 517 } 518 518 $info[$key] = $mstr; … … 866 866 $info[$infoindex] .= "$type $name"; 867 867 if (isset($package['uri'])) { 868 $info[$infoindex] .= "\n Download URI: $package[uri]";868 $info[$infoindex] .= "\n Download URI: {$package['uri']}"; 869 869 continue; 870 870 } … … 882 882 883 883 if (isset($package['recommended'])) { 884 $info[$infoindex] .= "\n Recommended version: $package[recommended]";884 $info[$infoindex] .= "\n Recommended version: {$package['recommended']}"; 885 885 } 886 886 … … 920 920 $info['Not Compatible with'] .= "\n"; 921 921 } 922 $info['Not Compatible with'] .= " $os[name]Operating System";922 $info['Not Compatible with'] .= "{$os['name']} Operating System"; 923 923 } else { 924 924 $info['Required Dependencies'] .= "\n"; 925 $info['Required Dependencies'] .= " $os[name]Operating System";925 $info['Required Dependencies'] .= "{$os['name']} Operating System"; 926 926 } 927 927 } … … 940 940 $info['Not Compatible with'] .= "\n"; 941 941 } 942 $info['Not Compatible with'] .= "OS/Arch matching pattern '/ $os[pattern]/'";942 $info['Not Compatible with'] .= "OS/Arch matching pattern '/{$os['pattern']}/'"; 943 943 } else { 944 944 $info['Required Dependencies'] .= "\n"; 945 $info['Required Dependencies'] .= "OS/Arch matching pattern '/ $os[pattern]/'";945 $info['Required Dependencies'] .= "OS/Arch matching pattern '/{$os['pattern']}/'"; 946 946 } 947 947 } … … 1006 1006 1007 1007 if (isset($package['recommended'])) { 1008 $info[$infoindex] .= "\n Recommended version: $package[recommended]";1008 $info[$infoindex] .= "\n Recommended version: {$package['recommended']}"; 1009 1009 } 1010 1010 … … 1066 1066 } 1067 1067 1068 $info[$groupindex] .= "\n Download URI: $package[uri]";1068 $info[$groupindex] .= "\n Download URI: {$package['uri']}"; 1069 1069 continue; 1070 1070 } … … 1088 1088 1089 1089 if (isset($package['recommended'])) { 1090 $info[$groupindex] .= "\n Recommended version: $package[recommended]";1090 $info[$groupindex] .= "\n Recommended version: {$package['recommended']}"; 1091 1091 } 1092 1092 … … 1119 1119 if (isset($package['uri'])) { 1120 1120 $info['Bundled Packages'] .= '__uri/' . $package['name']; 1121 $info['Bundled Packages'] .= "\n (URI: $package[uri]";1121 $info['Bundled Packages'] .= "\n (URI: {$package['uri']}"; 1122 1122 } else { 1123 1123 $info['Bundled Packages'] .= $package['channel'] . '/' . $package['name']; -
trunk/library/PEAR/PEAR/Command/Remote.php
r7655 r7681 623 623 $downloaded = $downloader->getDownloadedPackages(); 624 624 foreach ($downloaded as $pkg) { 625 $this->ui->outputData("File $pkg[file]downloaded", $command);625 $this->ui->outputData("File {$pkg['file']} downloaded", $command); 626 626 } 627 627 -
trunk/library/PEAR/PEAR/Downloader.php
r7655 r7681 1633 1633 1634 1634 if (isset($lastmodified['ETag'])) { 1635 $ifmodifiedsince .= "If-None-Match: $lastmodified[ETag]\r\n";1635 $ifmodifiedsince .= "If-None-Match: {$lastmodified['ETag']}\r\n"; 1636 1636 } 1637 1637 } else { -
trunk/library/PEAR/PEAR/Frontend/CLI.php
r7673 r7681 106 106 $frame['function'] = !isset($frame['function']) ? '' : $frame['function']; 107 107 $frame['line'] = !isset($frame['line']) ? '' : $frame['line']; 108 $this->_displayLine("#$i: $frame[class]$frame[type]$frame[function] $frame[line]");108 $this->_displayLine("#$i: {$frame['class']}{$frame['type']}{$frame['function']}{$frame['line']}"); 109 109 } 110 110 } -
trunk/library/PEAR/PEAR/Installer.php
r5146 r7681 236 236 237 237 if ((bool) $os->matchSignature($platform) === $negate) { 238 $this->log(3, "skipped $file (meant for $atts[platform], we are ".$os->getSignature().")");238 $this->log(3, "skipped $file (meant for {$atts['platform']}, we are ".$os->getSignature().")"); 239 239 return PEAR_INSTALLER_SKIPPED; 240 240 } … … 264 264 break; 265 265 default: 266 return $this->raiseError("Invalid role `$atts[role]' for file $file");266 return $this->raiseError("Invalid role '{$atts['role']}' for file $file"); 267 267 } 268 268 … … 354 354 if ($a['type'] == 'php-const') { 355 355 if (preg_match('/^[a-z0-9_]+\\z/i', $a['to'])) { 356 eval("\$to = $a[to];");356 eval("\$to = {$a['to']};"); 357 357 } else { 358 358 if (!isset($options['soft'])) { 359 $this->log(0, "invalid php-const replacement: $a[to]");359 $this->log(0, "invalid php-const replacement: {$a['to']}"); 360 360 } 361 361 continue; … … 374 374 if (is_null($to)) { 375 375 if (!isset($options['soft'])) { 376 $this->log(0, "invalid pear-config replacement: $a[to]");376 $this->log(0, "invalid pear-config replacement: {$a['to']}"); 377 377 } 378 378 continue; … … 383 383 } else { 384 384 if (!isset($options['soft'])) { 385 $this->log(0, "invalid package-info replacement: $a[to]");385 $this->log(0, "invalid package-info replacement: {$a['to']}"); 386 386 } 387 387 continue; … … 1586 1586 } 1587 1587 1588 $this->log(3, "+ cp $ext[file]$copyto");1588 $this->log(3, "+ cp {$ext['file']} $copyto"); 1589 1589 $this->addFileOperation('rename', array($ext['file'], $copyto)); 1590 1590 if (!OS_WINDOWS) { -
trunk/library/PEAR/PEAR/PackageFile/Generator/v1.php
r5146 r7681 204 204 " <name>$pkginfo[package]</name>"; 205 205 if (isset($pkginfo['extends'])) { 206 $ret .= "\n<extends> $pkginfo[extends]</extends>";206 $ret .= "\n<extends>{$pkginfo['extends']}</extends>"; 207 207 } 208 208 $ret .= … … 251 251 $ret = "$indent <release>\n"; 252 252 if (!empty($pkginfo['version'])) { 253 $ret .= "$indent <version> $pkginfo[version]</version>\n";253 $ret .= "$indent <version>{$pkginfo['version']}</version>\n"; 254 254 } 255 255 if (!empty($pkginfo['release_date'])) { 256 $ret .= "$indent <date> $pkginfo[release_date]</date>\n";256 $ret .= "$indent <date>{$pkginfo['release_date']}</date>\n"; 257 257 } 258 258 if (!empty($pkginfo['release_license'])) { 259 $ret .= "$indent <license> $pkginfo[release_license]</license>\n";259 $ret .= "$indent <license>{$pkginfo['release_license']}</license>\n"; 260 260 } 261 261 if (!empty($pkginfo['release_state'])) { 262 $ret .= "$indent <state> $pkginfo[release_state]</state>\n";262 $ret .= "$indent <state>{$pkginfo['release_state']}</state>\n"; 263 263 } 264 264 if (!empty($pkginfo['release_notes'])) { … … 272 272 $ret .= "$indent <deps>\n"; 273 273 foreach ($pkginfo['release_deps'] as $dep) { 274 $ret .= "$indent <dep type=\" $dep[type]\" rel=\"$dep[rel]\"";274 $ret .= "$indent <dep type=\"{$dep['type']}\" rel=\"{$dep['rel']}\""; 275 275 if (isset($dep['version'])) { 276 $ret .= " version=\" $dep[version]\"";276 $ret .= " version=\"{$dep['version']}\""; 277 277 } 278 278 if (isset($dep['optional'])) { 279 $ret .= " optional=\" $dep[optional]\"";279 $ret .= " optional=\"{$dep['optional']}\""; 280 280 } 281 281 if (isset($dep['name'])) { 282 $ret .= "> $dep[name]</dep>\n";282 $ret .= ">{$dep['name']}</dep>\n"; 283 283 } else { 284 284 $ret .= "/>\n"; … … 302 302 if (isset($pkginfo['provides'])) { 303 303 foreach ($pkginfo['provides'] as $key => $what) { 304 $ret .= "$indent <provides type=\" $what[type]\" ";305 $ret .= "name=\" $what[name]\" ";304 $ret .= "$indent <provides type=\"{$what['type']}\" "; 305 $ret .= "name=\"{$what['name']}\" "; 306 306 if (isset($what['extends'])) { 307 $ret .= "extends=\" $what[extends]\" ";307 $ret .= "extends=\"{$what['extends']}\" "; 308 308 } 309 309 $ret .= "/>\n"; … … 319 319 $fa['role'] = ''; 320 320 } 321 $ret .= "$indent <file role=\" $fa[role]\"";321 $ret .= "$indent <file role=\"{$fa['role']}\""; 322 322 if (isset($fa['baseinstalldir'])) { 323 323 $ret .= ' baseinstalldir="' . … … 325 325 } 326 326 if (isset($fa['md5sum'])) { 327 $ret .= " md5sum=\" $fa[md5sum]\"";327 $ret .= " md5sum=\"{$fa['md5sum']}\""; 328 328 } 329 329 if (isset($fa['platform'])) { 330 $ret .= " platform=\" $fa[platform]\"";330 $ret .= " platform=\"{$fa['platform']}\""; 331 331 } 332 332 if (!empty($fa['install-as'])) { … … 427 427 function _formatFile($file, $attributes, $indent) 428 428 { 429 $ret = "$indent <file role=\" $attributes[role]\"";429 $ret = "$indent <file role=\"{$attributes['role']}\""; 430 430 if (isset($attributes['baseinstalldir'])) { 431 431 $ret .= ' baseinstalldir="' . … … 433 433 } 434 434 if (isset($attributes['md5sum'])) { 435 $ret .= " md5sum=\" $attributes[md5sum]\"";435 $ret .= " md5sum=\"{$attributes['md5sum']}\""; 436 436 } 437 437 if (isset($attributes['platform'])) { 438 $ret .= " platform=\" $attributes[platform]\"";438 $ret .= " platform=\"{$attributes['platform']}\""; 439 439 } 440 440 if (!empty($attributes['install-as'])) { -
trunk/library/PEAR/PEAR/PackageFile/Parser/v1.php
r5146 r7681 269 269 } 270 270 $attribs['explicit'] = true; 271 $this->_packageInfo['provides'][" $attribs[type];$attribs[name]"] = $attribs;271 $this->_packageInfo['provides']["{$attribs['type']};{$attribs['name']}"] = $attribs; 272 272 break; 273 273 case 'package' : -
trunk/library/PEAR/PEAR/REST.php
r5146 r7681 377 377 378 378 if (isset($lastmodified['ETag'])) { 379 $ifmodifiedsince .= "If-None-Match: $lastmodified[ETag]\r\n";379 $ifmodifiedsince .= "If-None-Match: {$lastmodified['ETag']}\r\n"; 380 380 } 381 381 } else { -
trunk/library/PEAR/PEAR/Task/Replace.php
r5146 r7681 124 124 $to = $chan->getServer(); 125 125 } else { 126 $this->logger->log(0, "$dest: invalid pear-config replacement: $a[to]");126 $this->logger->log(0, "$dest: invalid pear-config replacement: {$a['to']}"); 127 127 return false; 128 128 } … … 140 140 } 141 141 if (is_null($to)) { 142 $this->logger->log(0, "$dest: invalid pear-config replacement: $a[to]");142 $this->logger->log(0, "$dest: invalid pear-config replacement: {$a['to']}"); 143 143 return false; 144 144 } … … 150 150 $to = constant($a['to']); 151 151 } else { 152 $this->logger->log(0, "$dest: invalid php-const replacement: $a[to]");152 $this->logger->log(0, "$dest: invalid php-const replacement: {$a['to']}"); 153 153 return false; 154 154 } … … 157 157 $to = $t; 158 158 } else { 159 $this->logger->log(0, "$dest: invalid package-info replacement: $a[to]");159 $this->logger->log(0, "$dest: invalid package-info replacement: {$a['to']}"); 160 160 return false; 161 161 }
Note: See TracChangeset
for help on using the changeset viewer.