diff options
author | Mitch Hagstrand <mhagstrand@gmail.com> | 2016-11-16 12:00:52 -0800 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-11-16 21:30:40 +0100 |
commit | 1d8be7c044c0e4a7d985e7b02fe81644a636542d (patch) | |
tree | dd5f3a41ab0901b80467dc18a89b6a148eda1d42 /ext/opcache/tests | |
parent | 71ee641327539c3f681c6c333e69f2531efacc3c (diff) | |
download | php-git-1d8be7c044c0e4a7d985e7b02fe81644a636542d.tar.gz |
Fix #73546: Logging for opcache has an empty file name
Diffstat (limited to 'ext/opcache/tests')
-rw-r--r-- | ext/opcache/tests/basic_logging.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/opcache/tests/basic_logging.phpt b/ext/opcache/tests/basic_logging.phpt new file mode 100644 index 0000000000..c62ea039a5 --- /dev/null +++ b/ext/opcache/tests/basic_logging.phpt @@ -0,0 +1,19 @@ +--TEST-- +Test basic logging for the Opcache +--DESCRIPTION-- +This test runs a simple PHP script and ensures the Opcache +outputs the correct logging at the highest log_verbosity_level + +--INI-- +opcache.enable=1 +opcache.enable_cli=1 +opcache.log_verbosity_level=4 +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--FILE-- +<?php +echo "Foo Bar\n"; +?> +--EXPECTF-- +%s Message Cached script '%sbasic_logging%s' +Foo Bar |