mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
e59f309ec0
commit
0b0f44e0ae
1 changed files with 2 additions and 3 deletions
|
@ -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';
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue