]> granicus.if.org Git - php/commitdiff
fix some failing tests
authorStanislav Malyshev <stas@php.net>
Mon, 23 May 2011 07:06:04 +0000 (07:06 +0000)
committerStanislav Malyshev <stas@php.net>
Mon, 23 May 2011 07:06:04 +0000 (07:06 +0000)
ext/standard/tests/file/005_variation2.phpt
ext/standard/tests/file/umask_variation3.phpt

index d70ce1251e61a9fc2381c445e33736502dfa6f20..51919dba60e49765750a55517f47cec7870abc08 100644 (file)
@@ -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)
index 1483dc430e590321b4fd6634ae86938ba49f698a..c666c328df72ba78e9cbacf857d2c424be030b3c 100644 (file)
@@ -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);
 };
 
 ?>