File tree Expand file tree Collapse file tree 5 files changed +38
-24
lines changed Expand file tree Collapse file tree 5 files changed +38
-24
lines changed Original file line number Diff line number Diff line change
1
+ FROM ircmaxell/php-compiler:18.04-dev
2
+
3
+ COPY ./ /compiler
4
+
5
+ WORKDIR /compiler
6
+
7
+ RUN composer install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader
8
+
9
+ ENTRYPOINT ["php" , "/compiler/bin/jit.php" ]
10
+
11
+ CMD ["-r" , "echo \" Hello World\n\" ;" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ composer-update:
14
14
shell :
15
15
docker run -it --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $(shell pwd) :/compiler ircmaxell/php-compiler:16.04-dev /bin/bash
16
16
17
+ .PHONY : shell-18
18
+ shell-18 :
19
+ docker run -it --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $(shell pwd) :/compiler ircmaxell/php-compiler:18.04-dev /bin/bash
20
+
17
21
.PHONY : docker-build-clean
18
22
docker-build-clean :
19
23
docker build --no-cache -t ircmaxell/php-compiler:16.04-dev Docker/dev/ubuntu-16.04
@@ -24,9 +28,15 @@ docker-build:
24
28
docker build -t ircmaxell/php-compiler:16.04-dev Docker/dev/ubuntu-16.04
25
29
docker build --no-cache -t ircmaxell/php-compiler:16.04 -f Docker/ubuntu-16.04/Dockerfile .
26
30
31
+ .PHONY : docker-build-clean-18
32
+ docker-build-clean-18 :
33
+ docker build --no-cache -t ircmaxell/php-compiler:18.04-dev Docker/dev/ubuntu-18.04
34
+ docker build --no-cache -t ircmaxell/php-compiler:18.04 -f Docker/ubuntu-18.04/Dockerfile .
35
+
27
36
.PHONY : docker-build-18
28
37
docker-build-18 :
29
38
docker build -t ircmaxell/php-compiler:18.04-dev Docker/dev/ubuntu-18.04
39
+ docker build --no-cache -t ircmaxell/php-compiler:18.04 -f Docker/ubuntu-18.04/Dockerfile .
30
40
31
41
.PHONY : benchmark
32
42
benchmark : rebuild-changed
58
68
.PHONY : test
59
69
test : rebuild-changed
60
70
docker run -v $(shell pwd) :/compiler ircmaxell/php-compiler:16.04-dev php vendor/bin/phpunit
71
+
72
+ .PHONY : test-18
73
+ test-18 : rebuild-changed
74
+ docker run -v $(shell pwd) :/compiler ircmaxell/php-compiler:18.04-dev php vendor/bin/phpunit
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public function iterate(bool $resolveIndirect = false): \Traversable {
63
63
}
64
64
}
65
65
66
- public function findVariable (Variable $ index , bool $ forWrite ): Variable {
66
+ public function findVariable (Variable $ index , bool $ forWrite ): ? Variable {
67
67
switch ($ index ->type ) {
68
68
case Variable::TYPE_INTEGER :
69
69
$ result = $ this ->findIndex ($ index ->toInt ());
You can’t perform that action at this time.
0 commit comments