cvs: phpdoc /en/reference/phar/Phar running.xml
| From: | Greg Beaver | Date: | Sun, 18 May 2008 22:59:31 +0000 |
| Subject: | cvs: phpdoc /en/reference/phar/Phar running.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1645@lists.php.net to get a copy of this message | ||
cellog Sun May 18 22:59:31 2008 UTC
Modified files:
/phpdoc/en/reference/phar/Phar running.xml
Log:
add note about using __FILE__ in a stub
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/Phar/running.xml?r1=1.1&r2=1.2&diff_format=u
Index: phpdoc/en/reference/phar/Phar/running.xml
diff -u phpdoc/en/reference/phar/Phar/running.xml:1.1 phpdoc/en/reference/phar/Phar/running.xml:1.2
--- phpdoc/en/reference/phar/Phar/running.xml:1.1 Fri May 2 04:36:22 2008
+++ phpdoc/en/reference/phar/Phar/running.xml Sun May 18 22:59:31 2008
@@ -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">