Skip to content

Commit 1f715f5

Browse files
LeSuisseGirgias
authored andcommitted
Use absolute paths in OPCache tests when calling opcache_compile_file()
This make sure the tests do not fail if they are not run from the repository root. Closes GH-10266 Signed-off-by: George Peter Banyard <[email protected]>
1 parent 55514a1 commit 1f715f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/opcache/tests/gh9968-1.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
opcache_compile_file('ext/opcache/tests/gh9968-2.inc');
3+
opcache_compile_file(__DIR__ . '/gh9968-2.inc');

ext/opcache/tests/preload_const_autoload.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ spl_autoload_register(function($class) {
44
var_dump($class);
55
new Abc;
66
});
7-
opcache_compile_file('preload_const_autoload_2.inc');
7+
opcache_compile_file(__DIR__ . '/preload_const_autoload_2.inc');

0 commit comments

Comments
 (0)