Skip to content

Commit b4ba43c

Browse files
committed
windows
1 parent f42c40d commit b4ba43c

7 files changed

+20
-20
lines changed

ext/standard/tests/file/file_get_contents_variation8-win32.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ Warning: file_get_contents( ): Failed to open stream: Permission denied in %s on
7070
bool(false)
7171

7272
-- Filename: \0 --
73-
TypeError: file_get_contents(): Argument #1 ($filename) must be a valid path, string given
73+
ValueError: file_get_contents(): Argument #1 ($filename) must not contain any null bytes
7474

7575
-- Filename: array() --
76-
TypeError: file_get_contents(): Argument #1 ($filename) must be a valid path, array given
76+
TypeError: file_get_contents(): Argument #1 ($filename) must be of type string, array given
7777

7878
-- Filename: /no/such/file/dir --
7979

ext/standard/tests/file/file_put_contents_variation8-win32.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ Warning: file_put_contents( ): Failed to open stream: Permission denied in %s on
7070
Failed to write data to: " "
7171

7272
-- Filename: \0 --
73-
TypeError: file_put_contents(): Argument #1 ($filename) must be a valid path, string given
73+
ValueError: file_put_contents(): Argument #1 ($filename) must not contain any null bytes
7474

7575
-- Filename: array() --
76-
TypeError: file_put_contents(): Argument #1 ($filename) must be a valid path, array given
76+
TypeError: file_put_contents(): Argument #1 ($filename) must be of type string, array given
7777

7878
-- Filename: /no/such/file/dir --
7979

ext/standard/tests/file/glob_variation-win32-mb.phpt

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ foreach($patterns as $pattern) {
4949
var_dump( glob($pattern, GLOB_NOCHECK) );
5050
var_dump( glob($pattern, GLOB_NOESCAPE) );
5151
var_dump( glob($pattern, GLOB_ERR) );
52-
} catch (TypeError $e) {
52+
} catch (Error $e) {
5353
echo $e->getMessage(), "\n";
5454
}
5555
$counter++;
@@ -75,7 +75,7 @@ foreach($patterns as $pattern) {
7575
echo "-- Iteration $counter --\n";
7676
try {
7777
var_dump( glob($pattern, GLOB_ONLYDIR) );
78-
} catch (TypeError $e) {
78+
} catch (Error $e) {
7979
echo $e->getMessage(), "\n";
8080
}
8181
$counter++;
@@ -330,7 +330,7 @@ array(0) {
330330
}
331331

332332
-- Iteration 8 --
333-
glob(): Argument #1 ($pattern) must be a valid path, string given
333+
glob(): Argument #1 ($pattern) must not contain any null bytes
334334

335335
-- Iteration 9 --
336336
array(0) {
@@ -433,7 +433,7 @@ array(1) {
433433
array(0) {
434434
}
435435
-- Iteration 8 --
436-
glob(): Argument #1 ($pattern) must be a valid path, string given
436+
glob(): Argument #1 ($pattern) must not contain any null bytes
437437
-- Iteration 9 --
438438
array(0) {
439439
}

ext/standard/tests/file/glob_variation-win32.phpt

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ foreach($patterns as $pattern) {
4848
var_dump( glob($pattern, GLOB_NOCHECK) );
4949
var_dump( glob($pattern, GLOB_NOESCAPE) );
5050
var_dump( glob($pattern, GLOB_ERR) );
51-
} catch (TypeError $e) {
51+
} catch (Error $e) {
5252
echo $e->getMessage(), "\n";
5353
}
5454
$counter++;
@@ -74,7 +74,7 @@ foreach($patterns as $pattern) {
7474
echo "-- Iteration $counter --\n";
7575
try {
7676
var_dump( glob($pattern, GLOB_ONLYDIR) );
77-
} catch (TypeError $e) {
77+
} catch (Error $e) {
7878
echo $e->getMessage(), "\n";
7979
}
8080
$counter++;
@@ -329,7 +329,7 @@ array(0) {
329329
}
330330

331331
-- Iteration 8 --
332-
glob(): Argument #1 ($pattern) must be a valid path, string given
332+
glob(): Argument #1 ($pattern) must not contain any null bytes
333333

334334
-- Iteration 9 --
335335
array(0) {
@@ -432,7 +432,7 @@ array(1) {
432432
array(0) {
433433
}
434434
-- Iteration 8 --
435-
glob(): Argument #1 ($pattern) must be a valid path, string given
435+
glob(): Argument #1 ($pattern) must not contain any null bytes
436436
-- Iteration 9 --
437437
array(0) {
438438
}

ext/standard/tests/file/readfile_variation10-win32.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ ValueError: Path cannot be empty
6565
Warning: readfile( ): Failed to open stream: Permission denied in %s on line %d
6666

6767
-- Filename: \0 --
68-
TypeError: readfile(): Argument #1 ($filename) must be a valid path, string given
68+
ValueError: readfile(): Argument #1 ($filename) must not contain any null bytes
6969

7070
-- Filename: array() --
71-
TypeError: readfile(): Argument #1 ($filename) must be a valid path, array given
71+
TypeError: readfile(): Argument #1 ($filename) must be of type string, array given
7272

7373
-- Filename: /no/such/file/dir --
7474

ext/standard/tests/file/tempnam_variation3-win32.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ for( $i=0; $i<count($names_arr); $i++ ) {
5959
echo "-- Iteration $i --\n";
6060
try {
6161
$file_name = tempnam($file_path, $names_arr[$i]);
62-
} catch (TypeError $e) {
62+
} catch (Error $e) {
6363
echo $e->getMessage(), "\n";
6464
continue;
6565
}
@@ -106,9 +106,9 @@ Notice: tempnam(): file created in the system's temporary directory in %stempnam
106106
Failed, not created in the correct directory %s vs %s
107107
0
108108
-- Iteration 6 --
109-
tempnam(): Argument #2 ($prefix) must be a valid path, string given
109+
tempnam(): Argument #2 ($prefix) must not contain any null bytes
110110
-- Iteration 7 --
111-
tempnam(): Argument #2 ($prefix) must be a valid path, array given
111+
tempnam(): Argument #2 ($prefix) must be of type string, array given
112112
-- Iteration 8 --
113113
OK
114114
-- Iteration 9 --

ext/standard/tests/file/tempnam_variation7-win32.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ for( $i=0; $i<count($names_arr); $i++ ) {
3434
echo "-- Iteration $i --\n";
3535
try {
3636
$file_name = tempnam($names_arr[$i], "tempnam_variation3.tmp");
37-
} catch (TypeError $e) {
37+
} catch (Error $e) {
3838
echo $e->getMessage(), "\n";
3939
continue;
4040
}
@@ -96,9 +96,9 @@ File name is => %s%et%s
9696
File permissions are => 100666
9797
File created in => temp dir
9898
-- Iteration 6 --
99-
tempnam(): Argument #1 ($dir) must be a valid path, string given
99+
tempnam(): Argument #1 ($dir) must not contain any null bytes
100100
-- Iteration 7 --
101-
tempnam(): Argument #1 ($dir) must be a valid path, array given
101+
tempnam(): Argument #1 ($dir) must be of type string, array given
102102
-- Iteration 8 --
103103

104104
Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7-win32.php on line %d

0 commit comments

Comments
 (0)