From 3c2c370ccb3e83b8229a98f9927e854f636e1c0f Mon Sep 17 00:00:00 2001 From: Aidan Lister Date: Tue, 7 Sep 2004 12:21:48 +0000 Subject: [PATCH] Used __FILE__ as it'll work in CLI too git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168120 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/misc/functions/php-strip-whitespace.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/misc/functions/php-strip-whitespace.xml b/reference/misc/functions/php-strip-whitespace.xml index 19b276ab08..b36c87f0fe 100644 --- a/reference/misc/functions/php-strip-whitespace.xml +++ b/reference/misc/functions/php-strip-whitespace.xml @@ -1,5 +1,5 @@ - + php_strip_whitespace @@ -50,7 +50,7 @@ * Another PHP comment */ -echo php_strip_whitespace($_SERVER['PHP_SELF']); +echo php_strip_whitespace(__FILE__); // Newlines are considered whitespace, and are removed too: do_nothing(); ?> @@ -60,7 +60,7 @@ do_nothing(); + echo php_strip_whitespace(__FILE__); do_nothing(); ?> ]]>