From 9bd6baefaee3a3e9b8dfe6427404512c9a66c969 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Fri, 26 Jun 2020 04:23:47 +0100 Subject: Tests: fixed opcache detection. opcache_get_status() returns array, so square brackets should be used to access "opcache_enabled" value. --- test/php/cwd/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/php') diff --git a/test/php/cwd/index.php b/test/php/cwd/index.php index 24ae3a21..de3797e4 100644 --- a/test/php/cwd/index.php +++ b/test/php/cwd/index.php @@ -10,7 +10,8 @@ if (isset($_GET['chdir']) && $_GET['chdir'] != "") { $opcache = -1; if (function_exists('opcache_get_status')) { - $opcache = opcache_get_status()->opcache_enabled; + $status = opcache_get_status(); + $opcache = $status['opcache_enabled']; } header('X-OPcache: ' . $opcache); -- cgit From f1e445bdef64ceba047d07b05d1b78137ddc2a7a Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Tue, 28 Jul 2020 04:53:40 +0100 Subject: Tests: added PHP test with time check in error log messages. --- test/php/error_log/index.php | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/php/error_log/index.php (limited to 'test/php') diff --git a/test/php/error_log/index.php b/test/php/error_log/index.php new file mode 100644 index 00000000..fd90adfe --- /dev/null +++ b/test/php/error_log/index.php @@ -0,0 +1,3 @@ + -- cgit