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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
35 + 7 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 25 00:01:41 2024 UTC