summarylogtreecommitdiffstats
path: root/php56.patch
blob: 99774ae16403ce773917788b1220c61890d1c4f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--- src/Composer/Compiler.php	2016-04-10 22:22:14.056406238 +0100
+++ src/Composer/Compiler.php	2016-04-10 22:39:13.935566040 +0100
@@ -183,7 +183,7 @@
     private function addComposerBin($phar)
     {
         $content = file_get_contents(__DIR__.'/../../bin/composer');
-        $content = preg_replace('{^#!/usr/bin/env php\s*}', '', $content);
+        $content = preg_replace('{^#!/usr/bin/env php56\s*}', '', $content);
         $phar->addFromString('bin/composer', $content);
     }
 
@@ -224,7 +224,7 @@
     private function getStub()
     {
         $stub = <<<'EOF'
-#!/usr/bin/env php
+#!/usr/bin/env php56
 <?php
 /*
  * This file is part of Composer.
--- bin/composer	2016-04-10 22:22:14.046406311 +0100
+++ bin/composer	2016-04-10 22:48:17.648083417 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!/usr/bin/env php56
 <?php
 
 if (PHP_SAPI !== 'cli') {
--- bin/compile	2016-08-24 09:10:26.184072313 +0200
+++ bin/compile	2016-08-24 09:10:27.550751053 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!/usr/bin/env php56
 <?php

 $cwd = getcwd();
@@ -10,9 +10,9 @@
 }
 // Install with the current version to force it having the right ClassLoader version
 // Install without dev packages to clean up the included classmap from phpunit classes
-shell_exec('php bin/composer config autoloader-suffix ComposerPhar' . $ts);
-shell_exec('php bin/composer install -q --no-dev');
-shell_exec('php bin/composer config autoloader-suffix --unset');
+shell_exec('php56 bin/composer config autoloader-suffix ComposerPhar' . $ts);
+shell_exec('php56 bin/composer install -q --no-dev');
+shell_exec('php56 bin/composer config autoloader-suffix --unset');
 chdir($cwd);

 require __DIR__.'/../src/bootstrap.php';