[PHP-CVS] cvs: php-src /ext/spl/internal fileobject.inc

2005-06-16 Thread Johannes Schl
johannesThu Jun 16 17:27:51 2005 EDT

  Modified files:  
/php-src/ext/spl/internal   fileobject.inc 
  Log:
  fix typos
  
http://cvs.php.net/diff.php/php-src/ext/spl/internal/fileobject.inc?r1=1.4r2=1.5ty=u
Index: php-src/ext/spl/internal/fileobject.inc
diff -u php-src/ext/spl/internal/fileobject.inc:1.4 
php-src/ext/spl/internal/fileobject.inc:1.5
--- php-src/ext/spl/internal/fileobject.inc:1.4 Mon May 30 16:10:38 2005
+++ php-src/ext/spl/internal/fileobject.inc Thu Jun 16 17:27:51 2005
@@ -31,9 +31,9 @@
 * @param $open_mode The file open mode
 * @param $use_include_path  Whether to search in include paths
 * @param $context   A stream context
-* @throw RuntimeException   If file cannot be opened (e.g. 
insufficient 
-*   access rights).
-*/
+* @throw RuntimeException   If file cannot be opened (e.g. 
insufficient 
+*   access rights).
+*/
function __construct($file_name, $open_mode = 'r', $use_include_path = 
false, $context = NULL)
{
$this-fp = fopen($file_name, $open_mode, $use_include_path, 
$context);
@@ -53,7 +53,7 @@
}
 
/**
-* @return whethe rend of stream is reached
+* @return whether the end of the stream is reached
 */
function eof()
{
@@ -85,7 +85,7 @@
}
 
/**
-* @param operation lock opeation (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB)
+* @param operation lock operation (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB)
 * @retval $wouldblock  whether the operation would block
 */
function flock($operation, $wouldblock)
@@ -210,7 +210,7 @@
}
 
/**
-* @return curren tsetting for max line
+* @return current setting for max line
 */
function getMaxLineLen()
{

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/spl/internal fileobject.inc

2005-05-30 Thread Marcus Boerger
helly   Mon May 30 16:10:40 2005 EDT

  Modified files:  
/php-src/ext/spl/internal   fileobject.inc 
  Log:
  - Update
  
http://cvs.php.net/diff.php/php-src/ext/spl/internal/fileobject.inc?r1=1.3r2=1.4ty=u
Index: php-src/ext/spl/internal/fileobject.inc
diff -u php-src/ext/spl/internal/fileobject.inc:1.3 
php-src/ext/spl/internal/fileobject.inc:1.4
--- php-src/ext/spl/internal/fileobject.inc:1.3 Tue May  3 18:28:44 2005
+++ php-src/ext/spl/internal/fileobject.inc Mon May 30 16:10:38 2005
@@ -73,8 +73,9 @@
}
 
/**
-* @$delimiter  character used as field separator
-* @enclosure   end of 
+* @param delimiter  character used as field separator
+* @param enclosure  end of 
+* @return array containing read data
 */
function fgetcsv($delimiter = ';', $enclosure = '')
{
@@ -110,8 +111,10 @@
}
 
/**
-* @pos new file position
-* @whence seek method (SEEK_SET, SEEK_CUR, SEEK_END)
+* @param pos new file position
+* @param whence seek method (SEEK_SET, SEEK_CUR, SEEK_END)
+* @return Upon success, returns 0; otherwise, returns -1. Note that 
+* seeking past EOF is not considered an error.
 */
function fseek($pos, $whence = SEEK_SET)
{
@@ -140,7 +143,7 @@
}
 
/** Get a line from the file and strip HTML tags
-* @param $allow_tags tags to keep in the string
+* @param $allowable_tags tags to keep in the string
 */
function fgetss($allowable_tags = NULL)
{
@@ -159,7 +162,7 @@
 
/**
 * @param $str to write
-* @param $lngth maximum line length to write
+* @param $length maximum line length to write
 */
function fwrite($str, $length = NULL)
{
@@ -175,7 +178,7 @@
}
 
/**
-* @param new size to truncate file to
+* @param $size new size to truncate file to
 */
function ftruncate($size)
{

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php