Changed pharpath parameter to indicate that the path must be relative, and must not already exist. Updated example to reflect that. Closes bug #55143.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320391 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Justin Martin 2011-12-04 23:23:15 +00:00
parent e59f309ec0
commit 0b0f44e0ae

View file

@ -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 @@ $configuration = simplexml_load_string(file_get_contents(
<?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';
?>