php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59550 Dynamic file stat option
Submitted: 2010-12-24 15:30 UTC Modified: 2010-12-30 11:31 UTC
From: admin at helpmefind dot com Assigned:
Status: Not a bug Package: APC (PECL)
PHP Version: 5_3 SVN-2010-12-24 (dev) OS: Centos
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: admin at helpmefind dot com
New email:
PHP Version: OS:

 

 [2010-12-24 15:30 UTC] admin at helpmefind dot com
Description:
------------
Would it be possible to start/run APC with file stat off but allow one to turn it on using the apc.php control panel preparatory to replacing some software modules.  One could then exercise the appropriate software features to ensure the replaced modules were run, and appropriately cached, and then turn file stat off again.  Thanks for you time.






Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-30 11:31 UTC] gopalv@php.net
APC's lookup hash is different for stat and no-stat modes.

for stat=1 it is (device no + inode no)

for stat=0 it is zend_inline_hash(filename)

if you cache using one, you can't find using the other. 

Just go ahead and use apc_compile_file() instead of this.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC