summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/006_error.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/006_error.phpt')
-rw-r--r--ext/standard/tests/file/006_error.phpt43
1 files changed, 0 insertions, 43 deletions
diff --git a/ext/standard/tests/file/006_error.phpt b/ext/standard/tests/file/006_error.phpt
index 9451a3e18b..ce3fdf2854 100644
--- a/ext/standard/tests/file/006_error.phpt
+++ b/ext/standard/tests/file/006_error.phpt
@@ -9,15 +9,6 @@ require __DIR__ . '/../skipif_root.inc';
?>
--FILE--
<?php
-/*
- Prototype: int fileperms ( string $filename )
- Description: Returns the permissions on the file, or FALSE in case of an error
-
- Prototype: bool chmod ( string $filename, int $mode )
- Description: Attempts to change the mode of the file specified by
- filename to that given in mode
-*/
-
echo "*** Testing error conditions for fileperms(), chmod() ***\n";
/* With standard files and dirs */
@@ -36,19 +27,6 @@ var_dump( chmod("/no/such/file/dir", 0777) );
var_dump( fileperms("/no/such/file/dir") );
echo "\n";
-/* With args less than expected */
-$fp = fopen(__DIR__."/006_error.tmp", "w");
-fclose($fp);
-var_dump( chmod(__DIR__."/006_error.tmp") );
-var_dump( chmod("nofile") );
-var_dump( chmod() );
-var_dump( fileperms() );
-
-/* With args greater than expected */
-var_dump( chmod(__DIR__."/006_error.tmp", 0755, TRUE) );
-var_dump( fileperms(__DIR__."/006_error.tmp", 0777) );
-var_dump( fileperms("nofile", 0777) );
-
echo "\n*** Done ***\n";
?>
--CLEAN--
@@ -73,25 +51,4 @@ Warning: fileperms(): stat failed for /no/such/file/dir in %s on line %d
bool(false)
-Warning: chmod() expects exactly 2 parameters, 1 given in %s on line %d
-NULL
-
-Warning: chmod() expects exactly 2 parameters, 1 given in %s on line %d
-NULL
-
-Warning: chmod() expects exactly 2 parameters, 0 given in %s on line %d
-NULL
-
-Warning: fileperms() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
-Warning: chmod() expects exactly 2 parameters, 3 given in %s on line %d
-NULL
-
-Warning: fileperms() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-
-Warning: fileperms() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-
*** Done ***