diff --git a/src/Composer/Compiler.php b/src/Composer/Compiler.php index a1dd8b2d1..30fa1d1d3 100644 --- a/src/Composer/Compiler.php +++ b/src/Composer/Compiler.php @@ -168,7 +168,7 @@ class Compiler private function getStub() { - return <<<'EOF' + $stub = <<<'EOF' #!/usr/bin/env php version)) { + $stub .= 'if (time() > '.(time()+30*86400).') {'. + "\n echo 'This dev build of composer is outdated, please run \"'.\$argv[0].' self-update\" to get the latest.'.PHP_EOL;". + "\n}\n"; + } + + return $stub .= <<<'EOF' require 'phar://composer.phar/bin/composer'; __HALT_COMPILER();