php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52781 phar+apc not work
Submitted: 2010-09-06 10:06 UTC Modified: 2010-09-09 06:49 UTC
From: bugzilla33 at gmail dot com Assigned:
Status: Duplicate Package: PHAR related
PHP Version: 5.3.3 OS: Win7 32-bit
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:
43 - 25 = ?
Subscribe to this entry?

 
 [2010-09-06 10:06 UTC] bugzilla33 at gmail dot com
Description:
------------
APC does not cache phar:// stream wrappers.

Full bug package with instruction: 

http://konsys.pl/apc_phar.zip


---

http://pecl.php.net/package/phar
"Phar is APC-compatible, the latest APC will cache files within a phar archive, resulting in a 6x speedup measured running phpMyAdmin as a phar archive."

Test script:
---------------
step_2.php:

<pre>
<?
 apc_clear_cache();
 require('phar://bin.phar/index.php');
 print_r(apc_cache_info());
?>
</pre>



step_3.php:

<pre>
<?
 apc_clear_cache();
 print('<b>');
 var_dump(apc_compile_file('phar://bin.phar/index.php'));
 print("but cache list empty</b>\r\n");
 print_r(apc_cache_info());
?>
</pre>


Expected result:
----------------
cache_list:

phar://{DOCUMENT_ROOT}bin.phar/index.php


Actual result:
--------------
Empty cache_list.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-06 10:13 UTC] bugzilla33 at gmail dot com
APC version 3.1.4
 [2010-09-09 06:49 UTC] aharvey@php.net
-Status: Open +Status: Duplicate
 [2010-09-09 06:49 UTC] aharvey@php.net
Given that you've also opened PECL bug #18496 against the APC package, I think we'll leave it for the APC developers to figure out for now -- having it open in two places is only likely to be confusing, and it looks more likely to be an APC issue than a PHAR one anyway.

Closing this bug in favour of the PECL bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC