Edit report at http://bugs.php.net/bug.php?id=52781&edit=1

 ID:                 52781
 Updated by:         ahar...@php.net
 Reported by:        bugzilla33 at gmail dot com
 Summary:            phar+apc not work
-Status:             Open
+Status:             Duplicate
 Type:               Bug
 Package:            PHAR related
 Operating System:   Win7 32-bit
 PHP Version:        5.3.3
 Block user comment: N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2010-09-06 10:13:52] bugzilla33 at gmail dot com

APC version 3.1.4

------------------------------------------------------------------------
[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

Reply via email to