Bug #52781 [Opn]: phar+apc not work
Edit report at http://bugs.php.net/bug.php?id=52781&edit=1
ID: 52781
User updated by: bugzilla33 at gmail dot com
Reported by: bugzilla33 at gmail dot com
Summary: phar+apc not work
Status: Open
Type: Bug
Package: PHAR related
Operating System: Win7 32-bit
PHP Version: 5.3.3
Block user comment: N
New Comment:
APC version 3.1.4
Previous Comments:
------------------------------------------------------------------------
[2010-09-06 10:06:48] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52781&edit=1
Thread (3 messages)