Bug #52781 [Opn]: phar+apc not work

From: Date: Mon, 06 Sep 2010 08:13:55 +0000
Subject: Bug #52781 [Opn]: phar+apc not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-154104@lists.php.net to get a copy of this message
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)

« previous php.bugs (#154104) next »