Bug #60907 [Fbk->NoF]: Phar in phar.cache_list is not cached when metadata is empty

From: Date: Sun, 12 Apr 2015 04:22:21 +0000
Subject: Bug #60907 [Fbk->NoF]: Phar in phar.cache_list is not cached when metadata is empty
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191990@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60907&edit=1

 ID:               60907
 Updated by:       php-bugs@lists.php.net
 Reported by:      stasismedia at gmail dot com
 Summary:          Phar in phar.cache_list is not cached when metadata is
                   empty
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          PHAR related
 Operating System: Ubuntu 11.10
 PHP Version:      5.3.9
 Private report:   N

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2015-03-30 18:50:43] mike@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.5-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



------------------------------------------------------------------------
[2012-10-18 15:42:31] stasismedia at gmail dot com

Sorrryyyyyyyyyyyyyy wrong bug :|

------------------------------------------------------------------------
[2012-10-18 15:41:09] stasismedia at gmail dot com

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

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


Thread (5 messages)

« previous php.bugs (#191990) next »