Bug #60907 [NEW]: Phar in phar.cache_list is not cached when metadata is empty

From: Date: Fri, 27 Jan 2012 17:48:15 +0000
Subject: Bug #60907 [NEW]: Phar in phar.cache_list is not cached when metadata is empty
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-166863@lists.php.net to get a copy of this message
From:             
Operating system: Ubuntu 11.10
PHP version:      5.3.9
Package:          PHAR related
Bug Type:         Bug
Bug description:Phar in phar.cache_list is not cached when metadata is empty

Description:
------------
We are using 'phar.cache_list' setting to pre-cache phar archives, making
them run 
faster. However, if there is no metadata in the phar, it appears as if the
phar is 
not cached.

We profiled 1000 requests to a script using the phar (restarting the
webserver 
between changes)

Without metadata: 36s
With metadata:    18s

phar.cache_list => /path/to/my.phar

Furthermore, there is no log output regarding the cache.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=60907&edit=1
-- 
Try a snapshot (PHP 5.4):            https://bugs.php.net/fix.php?id=60907&r=trysnapshot54
Try a snapshot (PHP 5.3):            https://bugs.php.net/fix.php?id=60907&r=trysnapshot53
Try a snapshot (trunk):              https://bugs.php.net/fix.php?id=60907&r=trysnapshottrunk
Fixed in SVN:                        https://bugs.php.net/fix.php?id=60907&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60907&r=needdocs
Fixed in release:                    https://bugs.php.net/fix.php?id=60907&r=alreadyfixed
Need backtrace:                      https://bugs.php.net/fix.php?id=60907&r=needtrace
Need Reproduce Script:               https://bugs.php.net/fix.php?id=60907&r=needscript
Try newer version:                   https://bugs.php.net/fix.php?id=60907&r=oldversion
Not developer issue:                 https://bugs.php.net/fix.php?id=60907&r=support
Expected behavior:                   https://bugs.php.net/fix.php?id=60907&r=notwrong
Not enough info:                     https://bugs.php.net/fix.php?id=60907&r=notenoughinfo
Submitted twice:                     https://bugs.php.net/fix.php?id=60907&r=submittedtwice
register_globals:                    https://bugs.php.net/fix.php?id=60907&r=globals
PHP 4 support discontinued:          https://bugs.php.net/fix.php?id=60907&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60907&r=dst
IIS Stability:                       https://bugs.php.net/fix.php?id=60907&r=isapi
Install GNU Sed:                     https://bugs.php.net/fix.php?id=60907&r=gnused
Floating point limitations:          https://bugs.php.net/fix.php?id=60907&r=float
No Zend Extensions:                  https://bugs.php.net/fix.php?id=60907&r=nozend
MySQL Configuration Error:           https://bugs.php.net/fix.php?id=60907&r=mysqlcfg



Thread (5 messages)

« previous php.bugs (#166863) next »