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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mhagstrand at gmail dot com
New email:
PHP Version: OS:

 

 [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

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: Mon Sep 09 17:01:27 2024 UTC