Skip to content

Commit

Permalink
fix some failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smalyshev committed May 23, 2011
1 parent 184f80f commit 9b8acf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions ext/standard/tests/file/005_variation2.phpt
Expand Up @@ -71,14 +71,8 @@ echo "Done";
*** Testing fileattime(), filemtime(), filectime() & touch() : usage variations ***

*** testing touch ***

Warning: touch(): Unable to create file because %s in %s on line %d
bool(false)

Warning: touch(): Unable to create file because %s in %s on line %d
bool(false)

Warning: touch(): Unable to create file because %s in %s on line %d
bool(false)
bool(true)
bool(true)
Expand Down
6 changes: 3 additions & 3 deletions ext/standard/tests/file/umask_variation3.phpt
Expand Up @@ -11,9 +11,9 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
--FILE--
<?php
/* Prototype : int umask([int mask])
* Description: Return or change the umask
* Description: Return or change the umask
* Source code: ext/standard/file.c
* Alias to functions:
* Alias to functions:
*/

echo "*** Testing umask() : usage variation ***\n";
Expand Down Expand Up @@ -110,7 +110,7 @@ foreach($inputs as $key =>$value) {
echo "\n--$key--\n";
umask(0);
var_dump(umask($value));
var_dump( umask());
var_dump( umask() & 0777);
};

?>
Expand Down

0 comments on commit 9b8acf8

Please sign in to comment.