Bug #69281 [Opn]: opcache_is_script_cached no longer works
| From: | laruence@php.net | Date: | Tue, 24 Mar 2015 05:43:27 +0000 |
| Subject: | Bug #69281 [Opn]: opcache_is_script_cached no longer works | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-191558@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69281&edit=1
ID: 69281
Updated by: laruence@php.net
Reported by: danack@php.net
Summary: opcache_is_script_cached no longer works
Status: Open
Type: Bug
Package: opcache
Operating System: Centos
PHP Version: 5.6.7
Block user comment: N
Private report: N
New Comment:
I can not reproduce this with php-fpm (5.6 branch)
Previous Comments:
------------------------------------------------------------------------
[2015-03-23 15:09:22] danack@php.net
Description:
------------
The function opcache_is_script_cached is meant to return true if a script is already cached and
present in OPCache. This is failing when running in the fpm-cgi in 5.6.7.
It works when:
* called from the CLI sapi.
* in the fpm-cgi sapi in 5.6.2
Test script:
---------------
<?php
var_dump(opcache_is_script_cached(__FILE__));
var_dump(opcache_is_script_cached(realpath(__FILE__)));
//The current file should always be present, as it is compiled and cached before being run.
Expected result:
----------------
bool(true) bool(true)
Actual result:
--------------
bool(false) bool(false)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69281&edit=1