php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73546 Logging for opcache has an empty file name
Submitted: 2016-11-16 19:53 UTC Modified: 2016-11-16 19:57 UTC
From: mhagstrand at gmail dot com Assigned:
Status: Closed Package: opcache
PHP Version: 7.0.13 OS: Any
Private report: No CVE-ID: None
 [2016-11-16 19:53 UTC] 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!

Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-16 19:57 UTC] mhagstrand at gmail dot com
-Summary: Logging for opcache leave filename blank +Summary: Logging for opcache has an empty file name
 [2016-11-16 19:57 UTC] mhagstrand at gmail dot com
Updating summary
 [2016-11-16 20:35 UTC] nikic@php.net
Automatic comment on behalf of mhagstrand@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=1d8be7c044c0e4a7d985e7b02fe81644a636542d
Log: Fix #73546: Logging for opcache has an empty file name
 [2016-11-16 20:35 UTC] nikic@php.net
-Status: Open +Status: Closed
 [2016-11-22 13:14 UTC] krakjoe@php.net
Automatic comment on behalf of mhagstrand@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=1d8be7c044c0e4a7d985e7b02fe81644a636542d
Log: Fix #73546: Logging for opcache has an empty file name
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 10:01:30 2024 UTC