From: Raghubansh Kumar Date: Tue, 14 Aug 2007 14:07:46 +0000 (+0000) Subject: Fix tests X-Git-Tag: php-5.2.4RC2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33f46cfe009a3b1b66300b3a59fe135e8b56bb49;p=php Fix tests --- diff --git a/ext/standard/tests/file/fgetcsv_variation10.phpt b/ext/standard/tests/file/fgetcsv_variation10.phpt index 2d00f9993e..250237c21f 100644 --- a/ext/standard/tests/file/fgetcsv_variation10.phpt +++ b/ext/standard/tests/file/fgetcsv_variation10.phpt @@ -1,5 +1,5 @@ --TEST-- -Test fgetcsv() : usage variations - file pointer pointing to EOF (Bug #42175) +Test fgetcsv() : usage variations - file pointer pointing to EOF --FILE-- ---EXPECT-- +--EXPECTF-- *** Testing fgetcsv() : with default enclosure, file pointer pointing at end of file *** -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) Done diff --git a/ext/standard/tests/file/fgetcsv_variation29.phpt b/ext/standard/tests/file/fgetcsv_variation29.phpt index 6ca5e87a1e..08c7503517 100644 --- a/ext/standard/tests/file/fgetcsv_variation29.phpt +++ b/ext/standard/tests/file/fgetcsv_variation29.phpt @@ -1,5 +1,5 @@ --TEST-- -Test fgetcsv() : usage variations - with only file handle as argument, file pointer pointing at end of file (Bug #42175) +Test fgetcsv() : usage variations - with only file handle as argument, file pointer pointing at end of file --FILE-- ---EXPECT-- +--EXPECTF-- *** Testing fgetcsv() : with file handle as only argument and file pointer pointing at end of file *** -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) Done diff --git a/ext/standard/tests/file/fgetcsv_variation30.phpt b/ext/standard/tests/file/fgetcsv_variation30.phpt index c6e514da37..e474b2d546 100644 --- a/ext/standard/tests/file/fgetcsv_variation30.phpt +++ b/ext/standard/tests/file/fgetcsv_variation30.phpt @@ -1,5 +1,5 @@ --TEST-- -Test fgetcsv() : usage variations - with file handle and length, file pointer pointing at end of file (Bug #42175) +Test fgetcsv() : usage variations - with file handle and length, file pointer pointing at end of file --FILE-- ---EXPECT-- +--EXPECTF-- *** Testing fgetcsv() : with file handle and length arguments, file pointer pointing at end of file *** -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) Done diff --git a/ext/standard/tests/file/fgetcsv_variation31.phpt b/ext/standard/tests/file/fgetcsv_variation31.phpt index 5e042ac62d..1d896b7919 100644 --- a/ext/standard/tests/file/fgetcsv_variation31.phpt +++ b/ext/standard/tests/file/fgetcsv_variation31.phpt @@ -1,5 +1,5 @@ --TEST-- -Test fgetcsv() : usage variations - with length and enclosure, file pointer pointing at end of file (Bug #42175) +Test fgetcsv() : usage variations - with length and enclosure, file pointer pointing at end of file --FILE-- ---EXPECT-- +--EXPECTF-- *** Testing fgetcsv() : with enclosure argument, file pointer pointing at end of file *** -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(53) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(53) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(57) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(57) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rb mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rt mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- int(0) -bool(true) +bool(false) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- int(0) -bool(true) bool(false) -int(61) +bool(false) +int(%d) bool(true) Done