note 104761 added to phar.mount

From: Date: Wed, 06 Jul 2011 06:08:47 +0000
Subject: note 104761 added to phar.mount
Groups: php.notes 
Request: Send a blank email to php-notes+get-181271@lists.php.net to get a copy of this message
The documentation is missing some important points reportet here: https://bugs.php.net/bug.php?id=55143 Unlike unix mount it is not possible to mount an external location to an existing path inside the phar. $pharpath must not exist or mount will fail. When calling from inside a phar it not only may be a relative path, it MUST be a relative path or mount will fail. Mounting to foreign pahr locations inside a phar is not possible. To the previous comment: Please note that database.db will become readonly in your case when phar.readonly is set to 1 in php.ini Mounting directories works (already got it working with magento): <?php // In stub Phar::mount('phar://' . __FILE__ . '/site', __DIR__ . '/site'); ?> Please note as stated above, the "site" directory must NOT exist in your phar or it will fail. ---- Server IP: 69.147.83.197 Probable Submitter: 79.243.87.187 ---- Manual Page -- http://www.php.net/manual/en/phar.mount.php Edit -- https://master.php.net/note/edit/104761 Del: integrated -- https://master.php.net/note/delete/104761/integrated Del: useless -- https://master.php.net/note/delete/104761/useless Del: bad code -- https://master.php.net/note/delete/104761/bad+code Del: spam -- https://master.php.net/note/delete/104761/spam Del: non-english -- https://master.php.net/note/delete/104761/non-english Del: in docs -- https://master.php.net/note/delete/104761/in+docs Del: other reasons-- https://master.php.net/note/delete/104761 Reject -- https://master.php.net/note/reject/104761 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#181271) next »