aidan Tue Sep 7 08:21:48 2004 EDT
Modified files:
/phpdoc/en/reference/misc/functions php-strip-whitespace.xml
Log:
Used __FILE__ as it'll work in CLI too
http://cvs.php.net/diff.php/phpdoc/en/reference/misc/functions/php-strip-whitespace.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/misc/functions/php-strip-whitespace.xml
diff -u phpdoc/en/reference/misc/functions/php-strip-whitespace.xml:1.4
phpdoc/en/reference/misc/functions/php-strip-whitespace.xml:1.5
--- phpdoc/en/reference/misc/functions/php-strip-whitespace.xml:1.4 Tue Aug 10
20:21:26 2004
+++ phpdoc/en/reference/misc/functions/php-strip-whitespace.xml Tue Sep 7 08:21:48
2004
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<refentry id="function.php-strip-whitespace">
<refnamediv>
<refname>php_strip_whitespace</refname>
@@ -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 @@
<screen>
<![CDATA[
<?php
- echo php_strip_whitespace($_SERVER['PHP_SELF']); do_nothing(); ?>
+ echo php_strip_whitespace(__FILE__); do_nothing(); ?>
]]>
</screen>
<para>