svn: /phpdoc/en/trunk/reference/filesystem/functions/ feof.xml

From: Date: Tue, 26 Jan 2010 19:56:51 +0000
Subject: svn: /phpdoc/en/trunk/reference/filesystem/functions/ feof.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5933@lists.php.net to get a copy of this message
seros Tue, 26 Jan 2010 19:56:51 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=294051 Log: Deleted tabs Changed paths: U phpdoc/en/trunk/reference/filesystem/functions/feof.xml Modified: phpdoc/en/trunk/reference/filesystem/functions/feof.xml =================================================================== --- phpdoc/en/trunk/reference/filesystem/functions/feof.xml 2010-01-26 19:55:40 UTC (rev 294050) +++ phpdoc/en/trunk/reference/filesystem/functions/feof.xml 2010-01-26 19:56:51 UTC (rev 294051) @@ -16,7 +16,7 @@ Tests for end-of-file on a file pointer. </para> </refsect1> - + <refsect1 role="parameters"> &reftitle.parameters; <para> @@ -30,7 +30,7 @@ </variablelist> </para> </refsect1> - + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> @@ -38,7 +38,7 @@ (including socket timeout); otherwise returns &false;. </para> </refsect1> - + <refsect1 role="notes"> &reftitle.notes; <warning> @@ -49,12 +49,12 @@ <example> <title>Handling timeouts with <function>feof</function></title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php function safe_feof($fp, &start = NULL) { - $start = microtime(true); + $start = microtime(true); - return feof($fp); + return feof($fp); } /* Assuming $fp is previously opened by fsockopen() */ @@ -64,7 +64,7 @@ while(!safe_feof($fp, $start) && (microtime(true) - $start) < $timeout) { - /* Handle */ + /* Handle */ } ?> ]]> @@ -79,7 +79,7 @@ <example> <title><function>feof</function> example with an invalid file pointer</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php // if file can not be read or doesn't exist fopen function returns FALSE $file = @fopen("no_such_file", "r"); @@ -96,7 +96,7 @@ </para> </warning> </refsect1> - + </refentry> <!-- Keep this comment at the end of the file

« previous php.doc.cvs (#5933) next »