mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
add note about using __FILE__ in a stub
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@259949 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
f3c6ee393f
commit
a04b081006
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<refentry xml:id="phar.running" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<refnamediv>
|
||||
<refname>Phar::running</refname>
|
||||
|
@ -18,6 +18,11 @@
|
|||
like the <literal>__FILE__</literal> magic constant, and only has effect inside
|
||||
an executing phar archive.
|
||||
</para>
|
||||
<para>
|
||||
Inside the stub of an archive, <function>Phar::running</function> returns
|
||||
<literal>""</literal>. Simply use <constant>__FILE__</constant>
|
||||
to access the current running phar inside a stub.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
|
|
Loading…
Reference in a new issue