Bug #73546 [Opn]: Logging for opcache has an empty file name
| From: | mhagstrand at gmail dot com | Date: | Wed, 16 Nov 2016 19:57:58 +0000 |
| Subject: | Bug #73546 [Opn]: Logging for opcache has an empty file name | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205418@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73546&edit=1
ID: 73546
User updated by: mhagstrand at gmail dot com
Reported by: mhagstrand at gmail dot com
-Summary: Logging for opcache leave filename blank
+Summary: Logging for opcache has an empty file name
Status: Open
Type: Bug
Package: opcache
Operating System: Any
PHP Version: 7.0.13
Block user comment: N
Private report: N
New Comment:
Updating summary
Previous Comments:
------------------------------------------------------------------------
[2016-11-16 19:53:51] mhagstrand at gmail dot com
Description:
------------
If the log_verbosity_level set to INFO (3) or higher it should output the filename of the script
when it is cached. In the logs the filename is an empty string.
Test script:
---------------
--- php.ini ---
opcache.enable=1
opcache.enable_cli=1
opcache.log_verbosity_level=4
--- script ---
<?php
echo "Hello World!\n";
?>
Expected result:
----------------
Wed Nov 16 19:05:22 2016 (5299): Message Cached script '/tmp/testlogging.php'
Wed Nov 16 19:05:22 2016 (5299): Message Added key 'test.php:189568:189616'
Hello World!
Actual result:
--------------
Wed Nov 16 19:05:22 2016 (5299): Message Cached script ''
Wed Nov 16 19:05:22 2016 (5299): Message Added key 'test.php:189568:189616'
Hello World!
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73546&edit=1