summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2011-05-23 07:06:04 +0000
committerStanislav Malyshev <stas@php.net>2011-05-23 07:06:04 +0000
commit9b8acf87a6a2df032e3155de384695ce4f9d32fe (patch)
tree00b7140136f9a8096499f226b18908f22f1d89cb
parent184f80ff668737dbb181421feec577a18858118d (diff)
downloadphp-git-9b8acf87a6a2df032e3155de384695ce4f9d32fe.tar.gz
fix some failing tests
-rw-r--r--ext/standard/tests/file/005_variation2.phpt6
-rw-r--r--ext/standard/tests/file/umask_variation3.phpt6
2 files changed, 3 insertions, 9 deletions
diff --git a/ext/standard/tests/file/005_variation2.phpt b/ext/standard/tests/file/005_variation2.phpt
index d70ce1251e..51919dba60 100644
--- a/ext/standard/tests/file/005_variation2.phpt
+++ b/ext/standard/tests/file/005_variation2.phpt
@@ -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)
diff --git a/ext/standard/tests/file/umask_variation3.phpt b/ext/standard/tests/file/umask_variation3.phpt
index 1483dc430e..c666c328df 100644
--- a/ext/standard/tests/file/umask_variation3.phpt
+++ b/ext/standard/tests/file/umask_variation3.phpt
@@ -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";
@@ -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);
};
?>