Skip to content

Commit

Permalink
1. Adding the autorun to the start of the script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Pearson committed Jan 22, 2014
1 parent d3ac790 commit 990af6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build-phar.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ function findDependentRuleset($standard=null)
*/
function addStub(&$phar)
{
$stub = '<?php error_reporting(E_ALL | E_STRICT);';
$stub = '#!/usr/bin/env php'."\n";
$stub .= '<?php error_reporting(E_ALL | E_STRICT);';
$stub .= '@include_once "PHP/Timer.php";';
$stub .= 'if (class_exists("PHP_Timer", false) === true) {';
$stub .= ' PHP_Timer::start();';
Expand Down

0 comments on commit 990af6b

Please sign in to comment.