svn: /phpdoc/en/trunk/reference/phar/Phar/ mount.xml
| From: | Justin Martin | Date: | Sun, 04 Dec 2011 23:23:15 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/phar/Phar/ mount.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9148@lists.php.net to get a copy of this message | ||
frozenfire Sun, 04 Dec 2011 23:23:15 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=320391
Log:
Changed pharpath parameter to indicate that the path must be relative, and must not already exist.
Updated example to reflect that. Closes bug #55143.
Bug: https://bugs.php.net/55143 (Open) Missing
documentation for Phar::mount()
Changed paths:
U phpdoc/en/trunk/reference/phar/Phar/mount.xml
Modified: phpdoc/en/trunk/reference/phar/Phar/mount.xml
===================================================================
--- phpdoc/en/trunk/reference/phar/Phar/mount.xml 2011-12-04 22:19:30 UTC (rev 320390)
+++ phpdoc/en/trunk/reference/phar/Phar/mount.xml 2011-12-04 23:23:15 UTC (rev 320391)
@@ -31,8 +31,7 @@
<listitem>
<para>
The internal path within the phar archive to use as the mounted path location.
- If executed within a phar archive, this may be a relative path, otherwise this must
- be a full <literal>phar</literal> URL.
+ This must be a relative path within the phar archive, and must not already exist.
</para>
</listitem>
</varlistentry>
@@ -90,7 +89,7 @@
<?php
// first set up the association between the abstract config.xml
// and the actual one on disk
-Phar::mount('phar:///path/to/archive.phar/config.xml',
'/home/example/config.xml');
+Phar::mount('phar://config.xml', '/home/example/config.xml');
// now run the application
include '/path/to/archive.phar';
?>