cvs: pear /File File.php
| From: | Tal Peer | Date: | Fri, 03 May 2002 14:37:10 +0000 |
| Subject: | cvs: pear /File File.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3686@lists.php.net to get a copy of this message | ||
tal Fri May 3 10:37:10 2002 EDT
Modified files:
/pear/File File.php
Log:
No, i don't test my code :)
Index: pear/File/File.php
diff -u pear/File/File.php:1.18 pear/File/File.php:1.19
--- pear/File/File.php:1.18 Tue Apr 30 10:31:46 2002
+++ pear/File/File.php Fri May 3 10:37:09 2002
@@ -232,7 +232,7 @@
*/
function write($filename, $data, $append = true, $lock = false)
{
- $mode = _checkAppend($append);
+ $mode = File::_checkAppend($append);
if (!PEAR::isError($fp = &File::_getFilePointer($filename, $mode, $lock))) {
if (($bytes = fwrite($fp, $data, strlen($data))) == -1) {
@@ -270,7 +270,7 @@
*/
function writeChar($filename, $char, $append = true, $lock = false)
{
- $mode = _checkAppend($append);
+ $mode = File::_checkAppend($append);
if (!PEAR::isError($fp = &File::_getFilePointer($filename, $mode, $lock))) {
if (fwrite($fp, $char, 1) == -1) {
@@ -327,7 +327,7 @@
*/
function writeLine($filename, $line, $append = true, $crlf = "\n", $lock = false)
{
- $mode = _checkAppend($append);
+ $mode = File::_checkAppend($append);
if(!PEAR::isError($fp = &File::_getFilePointer($filename, $mode, $lock))){
if (($bytes = fwrite($fp, $line . $crlf)) == -1) {
@@ -350,7 +350,7 @@
*/
function rewind($filename, $append)
{
- $mode = _checkAppend($append);
+ $mode = File::_checkAppend($append);
if (!PEAR::isError($fp = &File::_getFilePointer($filename, $mode))) {
return rewind($fp) ? true : PEAR::raiseError('Failed to rewind file: ' .
$filename);
@@ -369,7 +369,7 @@
*/
function close($filename, $append)
{
- $mode = _checkAppend($append);
+ $mode = File::_checkAppend($append);
if (!PEAR::isError($fp = &File::_getFilePointer($filename, $mode))) {
$filePointers = &PEAR::getStaticProperty('File',
'filePointers');
@@ -390,7 +390,7 @@
*/
function unlock($filename, $append)
{
- $mode = _checkAppend($append);
+ $mode = File::_checkAppend($append);
if (!PEAR::isError($fp = &FILE::_getFilePointer($filename, $mode))) {
return flock($fp, LOCK_UN) ? true : PEAR::raiseError('Failed to unlock file:
' . $filename);