From f8a68fd9350ac97d33d1773453c4e9d47a97b33f Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 13 Jun 2019 12:35:29 +0200 Subject: [PATCH] Add test for bug #78106 Also add PHP_TEST_EXTRA_ARGS environment variable, which allows to pass on -c, -d etc flags provided by run-tests.php. Otherwise we won't get the built-in server to run with opcache. --- ext/opcache/tests/bug78106.phpt | 22 ++++++++++++++++++++++ ext/opcache/tests/bug78106_include.inc | 3 +++ ext/opcache/tests/bug78106_test1.php | 6 ++++++ ext/opcache/tests/bug78106_test2.php | 5 +++++ run-tests.php | 4 +++- 5 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 ext/opcache/tests/bug78106.phpt create mode 100644 ext/opcache/tests/bug78106_include.inc create mode 100644 ext/opcache/tests/bug78106_test1.php create mode 100644 ext/opcache/tests/bug78106_test2.php diff --git a/ext/opcache/tests/bug78106.phpt b/ext/opcache/tests/bug78106.phpt new file mode 100644 index 00000000000..86c8acd3ae1 --- /dev/null +++ b/ext/opcache/tests/bug78106.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug #78106: PHP Fatal error: Uncaught Error: Class 'Phpfastcache\Config\Config' not found +--XFAIL-- +Not fixed yet +--FILE-- + +--EXPECT-- +included +done +included +done +included +done diff --git a/ext/opcache/tests/bug78106_include.inc b/ext/opcache/tests/bug78106_include.inc new file mode 100644 index 00000000000..06e39270f69 --- /dev/null +++ b/ext/opcache/tests/bug78106_include.inc @@ -0,0 +1,3 @@ +