]> granicus.if.org Git - php/commitdiff
- Test fixes
authorFelipe Pena <felipe@php.net>
Tue, 7 Jun 2011 02:29:03 +0000 (02:29 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 7 Jun 2011 02:29:03 +0000 (02:29 +0000)
16 files changed:
ext/standard/tests/file/glob_variation.phpt
ext/standard/tests/file/is_dir_variation3.phpt
ext/standard/tests/file/is_dir_variation4.phpt
ext/standard/tests/file/is_executable_variation1.phpt
ext/standard/tests/file/is_executable_variation3.phpt
ext/standard/tests/file/is_file_error.phpt
ext/standard/tests/file/is_file_variation3.phpt
ext/standard/tests/file/is_file_variation4.phpt
ext/standard/tests/file/is_readable_variation1.phpt
ext/standard/tests/file/is_readable_variation3.phpt
ext/standard/tests/file/is_writable_variation1.phpt
ext/standard/tests/file/is_writable_variation3.phpt
ext/standard/tests/file/lchown_error.phpt
ext/standard/tests/file/lstat_stat_error.phpt
ext/standard/tests/file/parse_ini_file_variation4.phpt
ext/standard/tests/file/tempnam_variation7.phpt

index 52c0dc8e47ae7d811d5140c9b840a941c546d127..01a955dc14fe4d9aff1279e02c6193a04dd816cd 100755 (executable)
@@ -325,20 +325,24 @@ array(0) {
 }
 
 -- Iteration 8 --
-array(0) {
-}
-array(0) {
-}
-array(0) {
-}
-array(1) {
-  [0]=>
-  string(%d) "%s/glob_variation/WONDER5"
-}
-array(0) {
-}
-array(0) {
-}
+
+Warning: glob() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
+
+Warning: glob() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
+
+Warning: glob() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
+
+Warning: glob() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
+
+Warning: glob() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
+
+Warning: glob() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
 
 -- Iteration 9 --
 array(0) {
@@ -441,8 +445,9 @@ array(1) {
 array(0) {
 }
 -- Iteration 8 --
-array(0) {
-}
+
+Warning: glob() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
 -- Iteration 9 --
 array(0) {
 }
index 2df297843b83eaec599059209d6c6a5f83fbcd61..579c70a01be3461cd11e8fd7e095dd14af673b1b 100644 (file)
@@ -42,7 +42,7 @@ bool(false)
 bool(false)
 bool(false)
 
-Warning: is_dir() expects parameter 1 to be string, resource given in %s on line %d
+Warning: is_dir() expects parameter 1 to be valid path, resource given in %s on line %d
 NULL
 bool(false)
 bool(false)
index a68fe0b005a74f8a14f475d89ee83aaefc4c894a..0867d1b605a307bbc1ee6823974178f31938e7aa 100644 (file)
@@ -77,9 +77,13 @@ bool(true)
 bool(false)
 
 -- Iteration 9 --
-bool(true)
+
+Warning: is_dir() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
 
 -- Iteration 10 --
-bool(true)
+
+Warning: is_dir() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
 
 *** Done ***
index 9969911ee141694eab4e841be725e8e9b5f01af1..2e579ccff64a7ab9c725d60fe68469911cc65bd7 100644 (file)
@@ -76,9 +76,13 @@ bool(false)
 -- Iteration 5 --
 bool(false)
 -- Iteration 6 --
-bool(true)
+
+Warning: is_executable() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
 -- Iteration 7 --
-bool(true)
+
+Warning: is_executable() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
 -- Iteration 8 --
 bool(false)
 -- Iteration 9 --
index 634ce1f40c6a5df0945d28c7bf9911bfa71a8190..0a1f3823b931169c4ac24d2223eb4b346dc76984 100644 (file)
@@ -62,7 +62,7 @@ bool(false)
 bool(false)
 bool(false)
 
-Warning: is_executable() expects parameter 1 to be string, array given in %s on line %d
+Warning: is_executable() expects parameter 1 to be valid path, array given in %s on line %d
 NULL
 bool(false)
 Done
index 711d761763a26e5fd40c71a5944ae3f5a8828eaa..6c481f0fdb131fdcdd00f914bb4035db7d75b2a2 100644 (file)
@@ -45,7 +45,7 @@ Warning: is_file() expects exactly 1 parameter, 2 given in %s on line %d
 NULL
 bool(false)
 
-Warning: is_file() expects parameter 1 to be string, resource given in %s on line %d
+Warning: is_file() expects parameter 1 to be valid path, resource given in %s on line %d
 NULL
 
 *** Done ***
index 917fa5acc8cdff7caa2196b7f8a7741cf8f97e43..e11c862ea3d91af9e4458d6c83a0bd0fd322b578 100644 (file)
@@ -51,7 +51,7 @@ bool(false)
 bool(false)
 bool(false)
 
-Warning: is_file() expects parameter 1 to be string, resource given in %s on line %d
+Warning: is_file() expects parameter 1 to be valid path, resource given in %s on line %d
 NULL
 bool(false)
 bool(false)
index 55aeedfaada50f36acbf5bdcb9343823664cb63d..11ca5d5558493d95b13393133c3d1630ac73eaaa 100644 (file)
@@ -67,8 +67,12 @@ bool(false)
 - Iteration 6 -
 bool(false)
 - Iteration 7 -
-bool(true)
+
+Warning: is_file() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
 - Iteration 8 -
-bool(true)
+
+Warning: is_file() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
 
 *** Done ***
index a1310327b8b3d9926a82a2cac9a48d11d56e86e2..e9f168a8e1cc16081412e0330cb9569004701f35 100644 (file)
@@ -87,11 +87,17 @@ bool(false)
 -- Iteration 6 --
 bool(false)
 -- Iteration 7 --
-bool(true)
+
+Warning: is_readable() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
 -- Iteration 8 --
-bool(true)
+
+Warning: is_readable() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
 -- Iteration 9 --
-bool(true)
+
+Warning: is_readable() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
 -- Iteration 10 --
 bool(true)
 -- Iteration 11 --
index dde47cc3b5cd7e779209c57227a554364d2b0053..782c4bc07eedd7d9d2652a739f708b2d8b11c09c 100644 (file)
@@ -61,7 +61,7 @@ bool(false)
 bool(false)
 bool(false)
 
-Warning: is_readable() expects parameter 1 to be string, array given in %s on line %d
+Warning: is_readable() expects parameter 1 to be valid path, array given in %s on line %d
 NULL
 bool(false)
 Done
index bf3e7e117199f3fa72e87f9a389b88625fd45e59..524684dea8132954edf673e9262391b81a0e5afc 100644 (file)
@@ -96,18 +96,30 @@ bool(false)
 bool(false)
 bool(false)
 -- Iteration 7 --
-bool(true)
-bool(true)
+
+Warning: is_writable() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
+
+Warning: is_writeable() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
 -- Iteration 8 --
-bool(true)
-bool(true)
+
+Warning: is_writable() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
+
+Warning: is_writeable() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
 -- Iteration 9 --
-bool(true)
-bool(true)
+
+Warning: is_writable() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
+
+Warning: is_writeable() expects parameter 1 to be valid path, string given in %s on line %d
+NULL
 -- Iteration 10 --
 bool(true)
 bool(true)
 -- Iteration 11 --
 bool(true)
 bool(true)
-Done
\ No newline at end of file
+Done
index 4c5bfa9082d3415e6025e880e9019d98ef79ceaf..25aa9c0433f5f4ed4fd82b6f668c08aaec423fb2 100644 (file)
@@ -67,10 +67,10 @@ bool(false)
 bool(false)
 bool(false)
 
-Warning: is_writable() expects parameter 1 to be string, array given in %s on line %d
+Warning: is_writable() expects parameter 1 to be valid path, array given in %s on line %d
 NULL
 
-Warning: is_writeable() expects parameter 1 to be string, array given in %s on line %d
+Warning: is_writeable() expects parameter 1 to be valid path, array given in %s on line %d
 NULL
 bool(false)
 bool(false)
index 1e0356569c2a6aa67ee58e77c6abc5e2a7908e48..72f105218370a6a8d2f39f87ed6b35483eaf41ad 100644 (file)
@@ -67,10 +67,10 @@ bool(true)
 Warning: lchown(): No such file or directory in %s on line %d
 bool(false)
 
-Warning: lchown() expects parameter 1 to be string, object given in %s on line %d
+Warning: lchown() expects parameter 1 to be valid path, object given in %s on line %d
 bool(true)
 
-Warning: lchown() expects parameter 1 to be string, array given in %s on line %d
+Warning: lchown() expects parameter 1 to be valid path, array given in %s on line %d
 bool(true)
 
 Warning: lchown(): Operation not permitted in %s on line %d
index 2a220084a4765f157fec7f0932cf93473eb24e99..d7ee41f9aeb71f37d723f33ed6d9f1a325d6bcd9 100644 (file)
@@ -51,7 +51,7 @@ bool(false)
 Warning: lstat(): Lstat failed for 22 in %s on line %d
 bool(false)
 
-Warning: lstat() expects parameter 1 to be string, array given in %s on line %d
+Warning: lstat() expects parameter 1 to be valid path, array given in %s on line %d
 NULL
 
 *** Testing stat() for error conditions ***
@@ -74,6 +74,6 @@ bool(false)
 Warning: stat(): stat failed for 22 in %s on line %d
 bool(false)
 
-Warning: stat() expects parameter 1 to be string, array given in %s on line %d
+Warning: stat() expects parameter 1 to be valid path, array given in %s on line %d
 NULL
 Done
index 46d45af48e9a2051788c2f68721f1b2649acfd01..d8ce01dbce59260ba4aaf08f8304be3798b649e6 100644 (file)
@@ -145,19 +145,19 @@ Error: 2 - parse_ini_file(0.5): failed to open stream: No such file or directory
 bool(false)
 
 --empty array--
-Error: 2 - parse_ini_file() expects parameter 1 to be string, array given, %s(%d)
+Error: 2 - parse_ini_file() expects parameter 1 to be valid path, array given, %s(%d)
 bool(false)
 
 --int indexed array--
-Error: 2 - parse_ini_file() expects parameter 1 to be string, array given, %s(%d)
+Error: 2 - parse_ini_file() expects parameter 1 to be valid path, array given, %s(%d)
 bool(false)
 
 --associative array--
-Error: 2 - parse_ini_file() expects parameter 1 to be string, array given, %s(%d)
+Error: 2 - parse_ini_file() expects parameter 1 to be valid path, array given, %s(%d)
 bool(false)
 
 --nested arrays--
-Error: 2 - parse_ini_file() expects parameter 1 to be string, array given, %s(%d)
+Error: 2 - parse_ini_file() expects parameter 1 to be valid path, array given, %s(%d)
 bool(false)
 
 --uppercase NULL--
@@ -197,7 +197,7 @@ Error: 2 - parse_ini_file(Class A object): failed to open stream: No such file o
 bool(false)
 
 --instance of classWithoutToString--
-Error: 2 - parse_ini_file() expects parameter 1 to be string, object given, %s(%d)
+Error: 2 - parse_ini_file() expects parameter 1 to be valid path, object given, %s(%d)
 bool(false)
 
 --undefined var--
index 18d074d28d491a2b4b0ce64461bae10624133190..e76e1f0c6aaf44b0a548f744c72ac25ee05fc3ba 100644 (file)
@@ -94,21 +94,23 @@ File name is => %s%etempnam_variation3.tmp%s
 File permissions are => 100600
 File created in => temp dir
 -- Iteration 6 --
-File name is => %s%etempnam_variation3.tmp%s
-File permissions are => 100600
-File created in => temp dir
+
+Warning: tempnam() expects parameter 1 to be valid path, string given in %s on line %d
+-- File is not created --
+
+Warning: unlink(): Invalid argument in %s on line %d
 -- Iteration 7 --
 
-Warning: tempnam() expects parameter 1 to be string, array given in %s on line %d
+Warning: tempnam() expects parameter 1 to be valid path, array given in %s on line %d
 -- File is not created --
 
-Warning: unlink(): %s in %s on line %d
+Warning: unlink(): Invalid argument in %s on line %d
 -- Iteration 8 --
-File name is => %s%etempnam_variation3.tmp%s
+File name is => /tmp/tempnam_variation3.tmp%s
 File permissions are => 100600
 File created in => temp dir
 -- Iteration 9 --
-File name is => %s%etempnam_variation3.tmp%s
+File name is => /tmp/tempnam_variation3.tmp%s
 File permissions are => 100600
 File created in => temp dir