Changeset 7681 for trunk/library/PEAR/PEAR/Installer.php
- Timestamp:
- 12/19/12 16:44:18 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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) {
Note: See TracChangeset
for help on using the changeset viewer.