File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
include/download-instructions Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
$ file = 'unknown ' ;
3
3
$ latestPhpVersion = '8.4 ' ;
4
- $ priorPhpVersion = '8.3 ' ;
5
4
6
5
if (!isset ($ options )) {
7
6
$ options = [
8
7
'os ' => '' ,
9
8
'usage ' => '' ,
10
9
'version ' => '' ,
11
- 'priorVersion ' => $ priorPhpVersion ,
12
10
];
13
11
}
14
12
67
65
68
66
$ version = $ options ['version ' ];
69
67
$ versionNoDot = str_replace ('. ' , '' , $ version );
70
- $ priorVersion = $ options ['priorVersion ' ];
71
- $ priorVersionNoDot = str_replace ('. ' , '' , $ priorPhpVersion );
72
68
73
69
if (file_exists (__DIR__ . "/include/download-instructions/ {$ file }.php " )) {
74
70
include __DIR__ . "/include/download-instructions/ {$ file }.php " ;
Original file line number Diff line number Diff line change 3
3
</p>
4
4
<pre><code class="language-bash line-numbers">
5
5
# Please refer to https://guide.macports.org/chunked/installing.macports.html for installing MacPorts.
6
- sudo port install php<?= $ versionNoDot ; ?>
7
6
8
- # To install a previous version:
9
- sudo port install php<?= $ priorVersionNoDot ; ?>
7
+ # Install PHP <?= $ version; ?>
8
+ sudo port install php<?= $ versionNoDot ; ?>
10
9
11
- # To switch to a different version:
12
- sudo port select php php<?= $ priorVersionNoDot ; ?>
10
+ # Switch Active PHP <?= $ version ; ?> version
11
+ sudo port select php php<?= $ versionNoDot ; ?>
13
12
</code></pre>
You can’t perform that action at this time.
0 commit comments