note 104417 added to phar.configuration
| From: | milagre at gmail dot com | Date: | Tue, 14 Jun 2011 18:48:09 +0000 |
| Subject: | note 104417 added to phar.configuration | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-180522@lists.php.net to get a copy of this message | ||
During experimentation with phar.cache_list using php 5.2.13 and pecl/phar 2.0.0, I found some
interesting details.
It seems that if any phar in the list of phars to cache fails to be read properly during module
initialization, none of the phars in the list will be cached, including ones that had already been
successfully read before the failure.
Additionally, phars without metadata will always fail to be pre-cached properly due to what seems to
be a bug in the phar module that re-reads the length of the metadata from the next byte if the
metadata length is 0. Adding any metadata resolved the problem for me.
So make sure you are pre-caching phars with metadata, and make sure you don't put a bad
path/file in the list.
----
Server IP: 192.41.42.26
Probable Submitter: 69.20.3.130
----
Manual Page -- http://www.php.net/manual/en/phar.configuration.php
Edit -- https://master.php.net/note/edit/104417
Del: integrated -- https://master.php.net/note/delete/104417/integrated
Del: useless -- https://master.php.net/note/delete/104417/useless
Del: bad code -- https://master.php.net/note/delete/104417/bad+code
Del: spam -- https://master.php.net/note/delete/104417/spam
Del: non-english -- https://master.php.net/note/delete/104417/non-english
Del: in docs -- https://master.php.net/note/delete/104417/in+docs
Del: other reasons-- https://master.php.net/note/delete/104417
Reject -- https://master.php.net/note/reject/104417
Search -- https://master.php.net/manage/user-notes.php