Skip to content

Commit ee137a7

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
2 parents 5d3e3a6 + f8a68fd commit ee137a7

File tree

5 files changed

+39
-1
lines changed

5 files changed

+39
-1
lines changed

ext/opcache/tests/bug78106.phpt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--TEST--
2+
Bug #78106: PHP Fatal error: Uncaught Error: Class 'Phpfastcache\Config\Config' not found
3+
--XFAIL--
4+
Not fixed yet
5+
--FILE--
6+
<?php
7+
8+
include __DIR__ . "/php_cli_server.inc";
9+
php_cli_server_start(getenv('TEST_PHP_EXTRA_ARGS'));
10+
11+
echo file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS . "/bug78106_test1.php" );
12+
echo file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS . "/bug78106_test2.php" );
13+
echo file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS . "/bug78106_test1.php" );
14+
15+
?>
16+
--EXPECT--
17+
included
18+
done
19+
included
20+
done
21+
included
22+
done
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
echo "included\n";

ext/opcache/tests/bug78106_test1.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
ini_set('opcache.enable', 0);
4+
require_once 'bug78106_include.inc';
5+
6+
echo "done\n";

ext/opcache/tests/bug78106_test2.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
require_once 'bug78106_include.inc';
4+
5+
echo "done\n";

run-tests.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ function save_or_mail_results()
818818
if (substr(PHP_OS, 0, 3) == "WIN") {
819819
$pass_options .= " -c " . escapeshellarg($conf_passed);
820820
} else {
821-
$pass_options .= " -c '$conf_passed'";
821+
$pass_options .= " -c '" . realpath($conf_passed) . "'";
822822
}
823823
}
824824

@@ -1600,6 +1600,8 @@ function run_test($php, $file, $env)
16001600

16011601
settings2params($ini_settings);
16021602

1603+
$env['TEST_PHP_EXTRA_ARGS'] = $pass_options . ' ' . $ini_settings;
1604+
16031605
// Check if test should be skipped.
16041606
$info = '';
16051607
$warn = false;

0 commit comments

Comments
 (0)