Bug #64482 [Opn->Asn]: Opcodes for dynamic includes should not be cached
| From: | dmitry@php.net | Date: | Mon, 25 Mar 2013 09:00:48 +0000 |
| Subject: | Bug #64482 [Opn->Asn]: Opcodes for dynamic includes should not be cached | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-178063@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64482&edit=1
ID: 64482
Updated by: dmitry@php.net
Reported by: lisachenko dot it at gmail dot com
Summary: Opcodes for dynamic includes should not be cached
-Status: Open
+Status: Assigned
Type: Bug
Package: opcache
Operating System: Windows 7
PHP Version: 5.5.0beta1
-Assigned To:
+Assigned To: dmitry
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2013-03-21 19:19:56] lisachenko dot it at gmail dot com
Description:
------------
Dynamic includes with php://filter/ should not be cached as the source code can be
modified dynamically.
Probably, includes with stream wrappers should be ignored by the opcode cacher
too.
Test script:
---------------
<?php
// bug.php
include 'include.php';
include 'php://filter/read=string.toupper/resource=include.php';
<?php
// include.php
echo "Dynamic include";
Expected result:
----------------
Dynamic includeDYNAMIC INCLUDE
Actual result:
--------------
Dynamic includeDynamic include
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64482&edit=1