note 113377 added to phar.mapphar

From: Date: Thu, 03 Oct 2013 14:52:47 +0000
Subject: note 113377 added to phar.mapphar
Groups: php.notes 
Request: Send a blank email to php-notes+get-196457@lists.php.net to get a copy of this message
Be careful with mapPhar and opcode caches like opcache: They might cache files included by the symbolic name based on the symbolic name you give. This becomes a problem when a server is hosting multiple different versions of a phar file all using the same symbolic name because then subsequent include()'s in the phar file might load an already cached file from another version of the phar file. Instead, generate a unique name and use that in mapPhar and in subsequent include()'s See for example https://github.com/zendtech/ZendOptimizerPlus/issues/115#issuecomment-25612769 for the issue in the opcache module. ---- Server IP: 69.147.83.199 Probable Submitter: 46.140.25.218 ---- Manual Page -- http://php.net/manual/en/phar.mapphar.php Edit -- https://master.php.net/note/edit/113377 Del: integrated -- https://master.php.net/note/delete/113377/integrated Del: useless -- https://master.php.net/note/delete/113377/useless Del: bad code -- https://master.php.net/note/delete/113377/bad+code Del: spam -- https://master.php.net/note/delete/113377/spam Del: non-english -- https://master.php.net/note/delete/113377/non-english Del: in docs -- https://master.php.net/note/delete/113377/in+docs Del: other reasons-- https://master.php.net/note/delete/113377 Reject -- https://master.php.net/note/reject/113377 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#196457) next »