php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62502 apc.stat=0 and apc still tries to stat
Submitted: 2012-07-07 18:51 UTC Modified: 2013-02-18 00:35 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: chx@php.net Assigned:
Status: No Feedback Package: APC (PECL)
PHP Version: 5.4.4 OS: Linux
Private report: No CVE-ID: None
 [2012-07-07 18:51 UTC] chx@php.net
Description:
------------
I am trying to filter while including and this doesn't work because the php:// 
filter does not support stat. Tentative patch https://gist.github.com/3067643 
here.

Test script:
---------------
include "php://filter/resource=foo.php";


Expected result:
----------------
I expect APC to cache this when stat=0.

Actual result:
--------------
APC does not cache because url_stat does not exist.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-08 02:58 UTC] chx@php.net
https://bugs.php.net/bug.php?id=59829 (which has been recently fixed) is very 
closely related.
 [2012-07-19 20:17 UTC] rasmus@php.net
-Status: Open +Status: Feedback
 [2012-07-19 20:17 UTC] rasmus@php.net
But your change to have search_paths() return 0 is going to break the 
canonicalize feature. See the fpstat==0 block of code in the 
apc_cache_make_file_key() function in apc_cache.c. Can you come up with a better 
solution for this?
 [2012-08-07 11:37 UTC] ab@php.net
Automatic comment from SVN on behalf of ab
Revision: http://svn.php.net/viewvc/?view=revision&revision=327013
Log: fixed bug where apc requires url_stat to be implemented for userspace stream wrappers in require
related to bug #62502, bug #61398, bug #38779
 [2012-08-07 11:40 UTC] ab@php.net
please check with the current trunk
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC