dmitry Wed Jul 25 16:34:06 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src NEWS
/php-src/main/streams plain_wrapper.c
/php-src/ext/standard/tests/file fgets_variation1.phpt
fread_variation4-win32.phpt
fread_variation4.phpt
Log:
Fixed EOF handling in case of reading from file opened in write only mode.
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.859&r2=1.2027.2.547.2.860&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.859 php-src/NEWS:1.2027.2.547.2.860
--- php-src/NEWS:1.2027.2.547.2.859 Wed Jul 25 11:13:00 2007
+++ php-src/NEWS Wed Jul 25 16:34:05 2007
@@ -41,6 +41,8 @@
- Implemented FR #41884 (ReflectionClass::getDefaultProperties() does not
handle
static attributes). (Tony)
+- Fixed EOF handling in case of reading from file opened in write only mode.
+ (Dmitry)
- Fixed "Floating point exception" inside wordwrap(). (Mattias Bengtsson,
Ilia)
- Fixed crash in OpenSSL extension because of non-string passphrase. (Dmitry)
http://cvs.php.net/viewvc.cgi/php-src/main/streams/plain_wrapper.c?r1=1.52.2.6.2.22&r2=1.52.2.6.2.23&diff_format=u
Index: php-src/main/streams/plain_wrapper.c
diff -u php-src/main/streams/plain_wrapper.c:1.52.2.6.2.22
php-src/main/streams/plain_wrapper.c:1.52.2.6.2.23
--- php-src/main/streams/plain_wrapper.c:1.52.2.6.2.22 Thu Jul 12 11:03:46 2007
+++ php-src/main/streams/plain_wrapper.c Wed Jul 25 16:34:05 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: plain_wrapper.c,v 1.52.2.6.2.22 2007/07/12 11:03:46 jani Exp $ */
+/* $Id: plain_wrapper.c,v 1.52.2.6.2.23 2007/07/25 16:34:05 dmitry Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -338,7 +338,7 @@
ret = read(data->fd, buf, count);
}
- stream->eof = (ret == 0 || (ret == (size_t)-1 && errno !=
EWOULDBLOCK && errno != EINTR));
+ stream->eof = (ret == 0 || (ret == (size_t)-1 && errno !=
EWOULDBLOCK && errno != EINTR && errno != EBADF));
} else {
#if HAVE_FLUSHIO
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fgets_variation1.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/standard/tests/file/fgets_variation1.phpt
diff -u php-src/ext/standard/tests/file/fgets_variation1.phpt:1.1.2.2
php-src/ext/standard/tests/file/fgets_variation1.phpt:1.1.2.3
--- php-src/ext/standard/tests/file/fgets_variation1.phpt:1.1.2.2 Mon Jul
23 10:47:13 2007
+++ php-src/ext/standard/tests/file/fgets_variation1.phpt Wed Jul 25
16:34:06 2007
@@ -84,7 +84,7 @@
bool(false)
bool(false)
int(0)
-bool(true)
+bool(false)
-- File opened in mode : at --
bool(true)
int(0)
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fread_variation4-win32.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/standard/tests/file/fread_variation4-win32.phpt
diff -u php-src/ext/standard/tests/file/fread_variation4-win32.phpt:1.1.2.2
php-src/ext/standard/tests/file/fread_variation4-win32.phpt:1.1.2.3
--- php-src/ext/standard/tests/file/fread_variation4-win32.phpt:1.1.2.2 Sun Jul
22 17:41:25 2007
+++ php-src/ext/standard/tests/file/fread_variation4-win32.phpt Wed Jul 25
16:34:06 2007
@@ -117,117 +117,117 @@
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode ab --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode at --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode w --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode wb --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode wt --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode x --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode xb --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode xt --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- Testing fread() with file having content of type text --
-- File opened in mode a --
@@ -236,117 +236,117 @@
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode ab --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode at --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode w --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode wb --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode wt --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode x --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode xb --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode xt --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- Testing fread() with file having content of type text_with_new_line --
-- File opened in mode a --
@@ -355,115 +355,115 @@
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode ab --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode at --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode w --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode wb --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode wt --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1137)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1137)
-bool(true)
+bool(false)
-- File opened in mode x --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode xb --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode xt --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1137)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1137)
-bool(true)
+bool(false)
Done
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fread_variation4.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/ext/standard/tests/file/fread_variation4.phpt
diff -u php-src/ext/standard/tests/file/fread_variation4.phpt:1.1.2.1
php-src/ext/standard/tests/file/fread_variation4.phpt:1.1.2.2
--- php-src/ext/standard/tests/file/fread_variation4.phpt:1.1.2.1 Sun Jul
22 17:27:35 2007
+++ php-src/ext/standard/tests/file/fread_variation4.phpt Wed Jul 25
16:34:06 2007
@@ -117,117 +117,117 @@
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode ab --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode at --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode w --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode wb --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode wt --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode x --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode xb --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode xt --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- Testing fread() with file having content of type text --
-- File opened in mode a --
@@ -236,117 +236,117 @@
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode ab --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode at --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode w --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode wb --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode wt --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode x --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode xb --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode xt --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- Testing fread() with file having content of type text_with_new_line --
-- File opened in mode a --
@@ -355,115 +355,115 @@
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode ab --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode at --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode w --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode wb --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode wt --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode x --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode xb --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
-- File opened in mode xt --
-- Reading beyond filesize, expeceted : 1024 bytes --
int(0)
bool(false)
Reading 1030 bytes from file, expecting 0 bytes ... OK
int(0)
-bool(true)
+bool(false)
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0
bytes --
int(1024)
bool(false)
Reading 10 bytes from file, expecting 0 bytes ... OK
int(1024)
-bool(true)
+bool(false)
Done
\ No newline at end of file
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php