[PHP-DOC] cvs: phpdoc /en/reference/filesystem/functions feof.xml file-exists.xml file-get-contents.xml file-put-contents.xml filectime.xml flock.xml is-readable.xml is-uploaded-file.xml readlink.xml
didou Fri Jun 15 19:45:56 2007 UTC Modified files: /phpdoc/en/reference/filesystem/functions feof.xml file-exists.xml file-get-contents.xml file-put-contents.xml filectime.xml flock.xml is-readable.xml is-uploaded-file.xml readlink.xml Log: WS, prepare for new doc style http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/feof.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc/en/reference/filesystem/functions/feof.xml diff -u phpdoc/en/reference/filesystem/functions/feof.xml:1.13 phpdoc/en/reference/filesystem/functions/feof.xml:1.14 --- phpdoc/en/reference/filesystem/functions/feof.xml:1.13 Sat Feb 3 08:13:44 2007 +++ phpdoc/en/reference/filesystem/functions/feof.xml Fri Jun 15 19:45:56 2007 @@ -1,5 +1,5 @@ - + @@ -16,23 +16,23 @@ Returns &true; if the file pointer is at EOF or an error occurs (including socket timeout); otherwise returns &false;. - - - If a connection opened by fsockopen wasn't closed - by the server, feof will wait until a timeout has - been reached to return &true;. The default timeout value is 60 seconds. - You may use stream_set_timeout to change this - value. - - - &fs.validfp.all; - - - If passed file pointer is not valid you may get an infinite loop, because - EOF fails to return TRUE. - - feof example with an invalid file pointer - + + +If a connection opened by fsockopen wasn't closed +by the server, feof will wait until a timeout has +been reached to return &true;. The default timeout value is 60 seconds. +You may use stream_set_timeout to change this +value. + + + &fs.validfp.all; + + +If passed file pointer is not valid you may get an infinite loop, because +EOF fails to return TRUE. + + feof example with an invalid file pointer + - - - - + + + + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/file-exists.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc/en/reference/filesystem/functions/file-exists.xml diff -u phpdoc/en/reference/filesystem/functions/file-exists.xml:1.16 phpdoc/en/reference/filesystem/functions/file-exists.xml:1.17 --- phpdoc/en/reference/filesystem/functions/file-exists.xml:1.16 Fri Mar 23 16:10:05 2007 +++ phpdoc/en/reference/filesystem/functions/file-exists.xmlFri Jun 15 19:45:56 2007 @@ -1,5 +1,5 @@ - + @@ -53,7 +53,7 @@ linkend="ini.safe-mode-include-dir">safe_mode_include_dir. - + The check is done using the real UID/GID instead of the effective one. http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/file-get-contents.xml?r1=1.25&r2=1.26&diff_format=u Index: phpdoc/en/reference/filesystem/functions/file-get-contents.xml diff -u phpdoc/en/reference/filesystem/functions/file-get-contents.xml:1.25 phpdoc/en/reference/filesystem/functions/file-get-contents.xml:1.26 --- phpdoc/en/reference/filesystem/functions/file-get-contents.xml:1.25 Thu Oct 26 02:17:14 2006 +++ phpdoc/en/reference/filesystem/functions/file-get-contents.xml Fri Jun 15 19:45:56 2007 @@ -1,100 +1,101 @@ - - - - -file_get_contents -Reads entire file into a string - - -&reftitle.description; - - stringfile_get_contents - stringfilename - booluse_include_path - resourcecontext - intoffset - intmaxlen - - - Identical to file, except that - file_get_contents returns the file in a string, - starting at the specified offset up to - maxlen bytes. - On failure, file_get_contents will return &false;. - - - file_get_contents is the preferred way to read the - contents of a file into a string. It will use memory mapping techniques if - supported by your OS to enhance performance. - - - - If you're opening a URI with special characters, such as spaces, you - need to encode the URI with urlencode. - - - - - context parameter can be skipped by &null;. - - - - - -&reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 5.0.0 - - Added the context support. - - - - 5.1.0 - - Added the offset and - maxlen parameters. - - - - - - - - - -&reftitle.notes; -¬e.bin-safe; -&tip.fopen-wrapper; -¬e.context-support; -&warn.ssl-non-standard; - - - -&reftitle.se
[PHP-DOC] cvs: phpdoc /en/reference/filesystem/functions feof.xml
vrana Mon Feb 13 09:06:31 2006 UTC Modified files: /phpdoc/en/reference/filesystem/functions feof.xml Log: Typo in example http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/filesystem/functions/feof.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc/en/reference/filesystem/functions/feof.xml diff -u phpdoc/en/reference/filesystem/functions/feof.xml:1.11 phpdoc/en/reference/filesystem/functions/feof.xml:1.12 --- phpdoc/en/reference/filesystem/functions/feof.xml:1.11 Tue Sep 20 21:38:58 2005 +++ phpdoc/en/reference/filesystem/functions/feof.xml Mon Feb 13 09:06:31 2006 @@ -1,5 +1,5 @@ - + @@ -44,7 +44,7 @@ fclose($file); ?> -?]]> +]]>
[PHP-DOC] cvs: phpdoc /en/reference/filesystem/functions feof.xml
dallas Tue Sep 20 17:39:00 2005 EDT Modified files: /phpdoc/en/reference/filesystem/functions feof.xml Log: Structure does not follow DTD, fixed. http://cvs.php.net/diff.php/phpdoc/en/reference/filesystem/functions/feof.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc/en/reference/filesystem/functions/feof.xml diff -u phpdoc/en/reference/filesystem/functions/feof.xml:1.10 phpdoc/en/reference/filesystem/functions/feof.xml:1.11 --- phpdoc/en/reference/filesystem/functions/feof.xml:1.10 Tue Sep 20 08:06:16 2005 +++ phpdoc/en/reference/filesystem/functions/feof.xml Tue Sep 20 17:38:58 2005 @@ -1,5 +1,5 @@ - + @@ -27,9 +27,11 @@ &fs.validfp.all; + If passed file pointer is not valid you may get an infinite loop, because EOF fails to return TRUE. +feof example with an invalid file pointer +
[PHP-DOC] cvs: phpdoc /en/reference/filesystem/functions feof.xml
techtonik Tue Sep 20 08:06:17 2005 EDT Modified files: /phpdoc/en/reference/filesystem/functions feof.xml Log: + document feof() pitfall if invalid handle passed http://cvs.php.net/diff.php/phpdoc/en/reference/filesystem/functions/feof.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc/en/reference/filesystem/functions/feof.xml diff -u phpdoc/en/reference/filesystem/functions/feof.xml:1.9 phpdoc/en/reference/filesystem/functions/feof.xml:1.10 --- phpdoc/en/reference/filesystem/functions/feof.xml:1.9 Mon Sep 6 15:48:29 2004 +++ phpdoc/en/reference/filesystem/functions/feof.xml Tue Sep 20 08:06:16 2005 @@ -1,5 +1,5 @@ - + @@ -26,6 +26,26 @@ &fs.validfp.all; + + If passed file pointer is not valid you may get an infinite loop, because + EOF fails to return TRUE. + + + + + +
[PHP-DOC] cvs: phpdoc /en/reference/filesystem/functions feof.xml
nlopess Mon Sep 6 15:48:29 2004 EDT Modified files: /phpdoc/en/reference/filesystem/functions feof.xml Log: fix #29942: misleading timeout description http://cvs.php.net/diff.php/phpdoc/en/reference/filesystem/functions/feof.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc/en/reference/filesystem/functions/feof.xml diff -u phpdoc/en/reference/filesystem/functions/feof.xml:1.8 phpdoc/en/reference/filesystem/functions/feof.xml:1.9 --- phpdoc/en/reference/filesystem/functions/feof.xml:1.8 Mon May 17 15:42:15 2004 +++ phpdoc/en/reference/filesystem/functions/feof.xml Mon Sep 6 15:48:29 2004 @@ -1,5 +1,5 @@ - + @@ -18,11 +18,11 @@ - feof will return &true; only if the connection opened by - fsockopen is closed. This can cause a script to - timeout. The workaround for this is to use - stream_set_timeout, so that - feof will return &false; on timeout. + If a connection opened by fsockopen wasn't closed + by the server, feof will wait until a timeout has + been reached to return &true;. The default timeout value is 60 seconds. + You may use stream_set_timeout to change this + value. &fs.validfp.all;
[PHP-DOC] cvs: phpdoc /en/reference/filesystem/functions feof.xml
nlopess Thu Dec 11 10:15:57 2003 EDT Modified files: /phpdoc/en/reference/filesystem/functions feof.xml Log: finally done Index: phpdoc/en/reference/filesystem/functions/feof.xml diff -u phpdoc/en/reference/filesystem/functions/feof.xml:1.6 phpdoc/en/reference/filesystem/functions/feof.xml:1.7 --- phpdoc/en/reference/filesystem/functions/feof.xml:1.6 Thu Dec 11 10:00:28 2003 +++ phpdoc/en/reference/filesystem/functions/feof.xml Thu Dec 11 10:15:57 2003 @@ -1,5 +1,5 @@ - + @@ -21,8 +21,8 @@ feof will return &true; only if the connection opened by fsockopen is closed. This can cause a script to timeout. The workaround for this is to use - stream_set_timeout, so that feof will return &false; - on timeout. + stream_set_timeout, so that + feof will return &false; on timeout.
[PHP-DOC] cvs: phpdoc /en/reference/filesystem/functions feof.xml
nlopess Thu Dec 11 10:00:28 2003 EDT Modified files: /phpdoc/en/reference/filesystem/functions feof.xml Log: oops... Index: phpdoc/en/reference/filesystem/functions/feof.xml diff -u phpdoc/en/reference/filesystem/functions/feof.xml:1.5 phpdoc/en/reference/filesystem/functions/feof.xml:1.6 --- phpdoc/en/reference/filesystem/functions/feof.xml:1.5 Thu Dec 11 09:49:29 2003 +++ phpdoc/en/reference/filesystem/functions/feof.xml Thu Dec 11 10:00:28 2003 @@ -1,5 +1,5 @@ - + @@ -18,10 +18,10 @@ - feof will return &true; only if the connection opened by + feof will return &true; only if the connection opened by fsockopen is closed. This can cause a script to timeout. The workaround for this is to use - stream_set_timeout, so that feof will return &false; + stream_set_timeout, so that feof will return &false; on timeout.
[PHP-DOC] cvs: phpdoc /en/reference/filesystem/functions feof.xml
nlopess Thu Dec 11 09:49:29 2003 EDT Modified files: /phpdoc/en/reference/filesystem/functions feof.xml Log: fixed #21485 Index: phpdoc/en/reference/filesystem/functions/feof.xml diff -u phpdoc/en/reference/filesystem/functions/feof.xml:1.4 phpdoc/en/reference/filesystem/functions/feof.xml:1.5 --- phpdoc/en/reference/filesystem/functions/feof.xml:1.4 Sun Jan 12 21:54:28 2003 +++ phpdoc/en/reference/filesystem/functions/feof.xml Thu Dec 11 09:49:29 2003 @@ -1,5 +1,5 @@ - + @@ -13,9 +13,18 @@ resourcehandle - Returns &true; if the file pointer is at EOF or an error occurs; - otherwise returns &false;. + Returns &true; if the file pointer is at EOF or an error occurs + (including socket timeout); otherwise returns &false;. + + + feof will return &true; only if the connection opened by + fsockopen is closed. This can cause a script to + timeout. The workaround for this is to use + stream_set_timeout, so that feof will return &false; + on timeout. + + The file pointer must be valid, and must point to a file successfully opened by fopen,