Edit report at https://bugs.php.net/bug.php?id=60907&edit=1
ID: 60907 Comment by: stasismedia at gmail dot com Reported by: stasismedia at gmail dot com Summary: Phar in phar.cache_list is not cached when metadata is empty Status: Open Type: Bug Package: PHAR related Operating System: Ubuntu 11.10 PHP Version: 5.3.9 Block user comment: N Private report: N New Comment: I actually get the same issue on both 5.3.11 and 5.4.4: 5.3.11: ------- array(11) { [0]=> string(22) "HTTP/1.1 404 Not Found" [1]=> string(35) "Date: Thu, 18 Oct 2012 15:35:04 GMT" [2]=> string(29) "Server: Apache/2.2.3 (CentOS)" [3]=> string(23) "X-Powered-By: PHP/5.3.2" [4]=> string(20) "Content-language: en" [5]=> string(88) "Set-Cookie: LAST_LANG=en; expires=Fri, 18-Oct-2013 15:35:04 GMT; path=/; domain=.php.net" [6]=> string(101) "Set-Cookie: COUNTRY=GBR%2C94.195.8.27; expires=Thu, 25-Oct-2012 15:35:04 GMT; path=/; domain=.php.net" [7]=> string(21) "Status: 404 Not Found" [8]=> string(20) "Content-Length: 4182" [9]=> string(17) "Connection: close" [10]=> string(37) "Content-Type: text/html;charset=utf-8" } string(4182) "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 5.4.4: ------- array(11) { [0] => string(22) "HTTP/1.1 404 Not Found" [1] => string(35) "Date: Thu, 18 Oct 2012 15:35:19 GMT" [2] => string(29) "Server: Apache/2.2.3 (CentOS)" [3] => string(23) "X-Powered-By: PHP/5.3.2" [4] => string(20) "Content-language: en" [5] => string(88) "Set-Cookie: LAST_LANG=en; expires=Fri, 18-Oct-2013 15:35:19 GMT; path=/; domain=.php.net" [6] => string(101) "Set-Cookie: COUNTRY=GBR%2C94.195.8.27; expires=Thu, 25-Oct-2012 15:35:19 GMT; path=/; domain=.php.net" [7] => string(21) "Status: 404 Not Found" [8] => string(20) "Content-Length: 4182" [9] => string(17) "Connection: close" [10] => string(37) "Content-Type: text/html;charset=utf-8" } string(4182) "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n Previous Comments: ------------------------------------------------------------------------ [2012-01-27 17:48:15] stasismedia at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=60907&edit=1