diff --git a/.make/build/afterBuild.php b/.make/build/afterBuild.php index cecdaf9e9..e1ab17a1f 100644 --- a/.make/build/afterBuild.php +++ b/.make/build/afterBuild.php @@ -22,13 +22,13 @@ $iElapsed = time() - $iBeginTime; if (count($aFailedCommands)) { - fwrite(STDERR, "\nafterBuild execution failed! (in ${iElapsed}s)\n"); + fwrite(STDERR, "\nafterBuild execution failed! (in {$iElapsed}s)\n"); fwrite(STDERR, "List of failling commands:\n - " . implode("\n - ", $aFailedCommands) . "\n"); exit(1); } -echo "\nDone (${iElapsed}s)\n"; +echo "\nDone ({$iElapsed}s)\n"; exit(0); /** @@ -74,7 +74,7 @@ function ExecCommand($cmd) { } else { - echo "| elapsed:${iElapsed}s \n"; + echo "| elapsed:{$iElapsed}s \n"; } if (!empty($stderr)) diff --git a/core/oql/build/PHP/ParserGenerator.php b/core/oql/build/PHP/ParserGenerator.php index 4a6fa08a4..51cbf3c41 100644 --- a/core/oql/build/PHP/ParserGenerator.php +++ b/core/oql/build/PHP/ParserGenerator.php @@ -739,7 +739,7 @@ class PHP_ParserGenerator while (isset($errmsg[$restart]) && $errmsg[$restart] == ' ') { $restart++; } - printf("%s%.${end}s\n", $prefix, $errmsg); + printf("%s%.{$end}s\n", $prefix, $errmsg); $errmsg = substr($errmsg, $restart); } } @@ -771,7 +771,7 @@ class PHP_ParserGenerator for ($j = $i; $j < $this->nsymbol; $j += $skip) { $sp = $this->symbols[$j]; //assert( sp->index==j ); - printf(" %3d %-${maxlen}.${maxlen}s", $j, $sp->name); + printf(" %3d %-{$maxlen}.{$maxlen}s", $j, $sp->name); } print "\n"; } diff --git a/core/oql/build/PHP/ParserGenerator/Action.php b/core/oql/build/PHP/ParserGenerator/Action.php index e0108890e..7f87d7740 100644 --- a/core/oql/build/PHP/ParserGenerator/Action.php +++ b/core/oql/build/PHP/ParserGenerator/Action.php @@ -231,19 +231,19 @@ class PHP_ParserGenerator_Action switch ($this->type) { case self::SHIFT: - fprintf($fp, "%${indent}s shift %d", $this->sp->name, $this->x->statenum); + fprintf($fp, "%{$indent}s shift %d", $this->sp->name, $this->x->statenum); break; case self::REDUCE: - fprintf($fp, "%${indent}s reduce %d", $this->sp->name, $this->x->index); + fprintf($fp, "%{$indent}s reduce %d", $this->sp->name, $this->x->index); break; case self::ACCEPT: - fprintf($fp, "%${indent}s accept", $this->sp->name); + fprintf($fp, "%{$indent}s accept", $this->sp->name); break; case self::ERROR: - fprintf($fp, "%${indent}s error", $this->sp->name); + fprintf($fp, "%{$indent}s error", $this->sp->name); break; case self::CONFLICT: - fprintf($fp, "%${indent}s reduce %-3d ** Parsing conflict **", $this->sp->name, $this->x->index); + fprintf($fp, "%{$indent}s reduce %-3d ** Parsing conflict **", $this->sp->name, $this->x->index); break; case self::SH_RESOLVED: case self::RD_RESOLVED: