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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugzilla33 at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sun Dec 22 06:01:30 2024 UTC