Skip to content

Commit 9eb5cb6

Browse files
committed
fix some failing tests
1 parent a95a021 commit 9eb5cb6

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

ext/standard/tests/file/005_variation2.phpt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,8 @@ echo "Done";
7171
*** Testing fileattime(), filemtime(), filectime() & touch() : usage variations ***
7272

7373
*** testing touch ***
74-
75-
Warning: touch(): Unable to create file because %s in %s on line %d
7674
bool(false)
77-
78-
Warning: touch(): Unable to create file because %s in %s on line %d
7975
bool(false)
80-
81-
Warning: touch(): Unable to create file because %s in %s on line %d
8276
bool(false)
8377
bool(true)
8478
bool(true)

ext/standard/tests/file/umask_variation3.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
1111
--FILE--
1212
<?php
1313
/* Prototype : int umask([int mask])
14-
* Description: Return or change the umask
14+
* Description: Return or change the umask
1515
* Source code: ext/standard/file.c
16-
* Alias to functions:
16+
* Alias to functions:
1717
*/
1818

1919
echo "*** Testing umask() : usage variation ***\n";
@@ -110,7 +110,7 @@ foreach($inputs as $key =>$value) {
110110
echo "\n--$key--\n";
111111
umask(0);
112112
var_dump(umask($value));
113-
var_dump( umask());
113+
var_dump( umask() & 0777);
114114
};
115115

116116
?>

0 commit comments

Comments
 (0)