php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64482 Opcodes for dynamic includes should not be cached
Submitted: 2013-03-21 19:19 UTC Modified: 2013-03-25 09:00 UTC
From: lisachenko dot it at gmail dot com Assigned: dmitry (profile)
Status: Closed Package: opcache
PHP Version: 5.5.0beta1 OS: Windows 7
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lisachenko dot it at gmail dot com
New email:
PHP Version: OS:

 

 [2013-03-21 19:19 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-25 09:00 UTC] dmitry@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: dmitry
 [2013-03-25 09:06 UTC] dmitry@php.net
Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0a00d292569a8fbd2d5c96c9d141b23ae916f00b
Log: Fixed bug #64482 (Opcodes for dynamic includes should not be cached)
 [2013-03-25 09:06 UTC] dmitry@php.net
-Status: Assigned +Status: Closed
 [2013-11-17 09:31 UTC] laruence@php.net
Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0a00d292569a8fbd2d5c96c9d141b23ae916f00b
Log: Fixed bug #64482 (Opcodes for dynamic includes should not be cached)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 15 18:01:27 2024 UTC