From a04b081006c6900e4e4b0b958240d1d5b96d4c69 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sun, 18 May 2008 22:59:31 +0000 Subject: [PATCH] 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 --- reference/phar/Phar/running.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reference/phar/Phar/running.xml b/reference/phar/Phar/running.xml index 00c22feea6..5aaba9b3c5 100644 --- a/reference/phar/Phar/running.xml +++ b/reference/phar/Phar/running.xml @@ -1,5 +1,5 @@ - + Phar::running @@ -18,6 +18,11 @@ like the __FILE__ magic constant, and only has effect inside an executing phar archive. + + Inside the stub of an archive, Phar::running returns + "". Simply use __FILE__ + to access the current running phar inside a stub. +