didou Mon Jan 22 01:46:15 2007 UTC
Modified files:
/phpdoc/en/reference/filesystem/functions realpath.xml
Log:
Fix 38853: Include example output for realpath
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/realpath.xml?r1=1.8&r2=1.9&diff_format=u
Index: phpdoc/en/reference/filesystem/functions/realpath.xml
diff -u phpdoc/en/reference/filesystem/functions/realpath.xml:1.8
phpdoc/en/reference/filesystem/functions/realpath.xml:1.9
--- phpdoc/en/reference/filesystem/functions/realpath.xml:1.8 Sun Aug 7
12:52:24 2005
+++ phpdoc/en/reference/filesystem/functions/realpath.xml Mon Jan 22
01:46:15 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.23 -->
<refentry id="function.realpath">
<refnamediv>
@@ -31,10 +31,17 @@
<programlisting role="php">
<![CDATA[
<?php
-$real_path = realpath("../../index.php");
+chdir('/var/www/');
+echo realpath('./../../etc/passwd');
?>
]]>
</programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+/etc/passwd
+]]>
+ </screen>
</example>
</para>
<para>