Bug #69281 [NEW]: opcache_is_script_cached no longer works
From: danack
Operating system: Centos
PHP version: 5.6.7
Package: opcache
Bug Type: Bug
Bug description:opcache_is_script_cached no longer works
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 bug report at https://bugs.php.net/bug.php?id=69281&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69281&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69281&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69281&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69281&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69281&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69281&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69281&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69281&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69281&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69281&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69281&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69281&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69281&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69281&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69281&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69281&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69281&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69281&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69281&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69281&r=mysqlcfg
Thread (5 messages)
- danack@php.net