diff options
Diffstat (limited to 'ext/standard/tests/file/006_basic.phpt')
-rw-r--r-- | ext/standard/tests/file/006_basic.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/tests/file/006_basic.phpt b/ext/standard/tests/file/006_basic.phpt index e8b36c2c0d..553e8445f1 100644 --- a/ext/standard/tests/file/006_basic.phpt +++ b/ext/standard/tests/file/006_basic.phpt @@ -6,7 +6,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip Not on Windows'); } // Skip if being run by root -$filename = dirname(__FILE__)."/006_root_check.tmp"; +$filename = __DIR__."/006_root_check.tmp"; $fp = fopen($filename, 'w'); fclose($fp); if(fileowner($filename) == 0) { @@ -27,7 +27,7 @@ unlink($filename); Description: Attempts to change the mode of the file specified by filename to that given in mode */ -$path = dirname(__FILE__); +$path = __DIR__; echo "*** Testing fileperms(), chmod() with files and dirs ***\n"; fopen($path."/perm.tmp", "w"); @@ -46,8 +46,8 @@ echo "Done\n"; ?> --CLEAN-- <?php -unlink(dirname(__FILE__)."/perm.tmp"); -rmdir(dirname(__FILE__)."/perm"); +unlink(__DIR__."/perm.tmp"); +rmdir(__DIR__."/perm"); ?> --EXPECT-- *** Testing fileperms(), chmod() with files and dirs *** |