summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/fopen_variation5.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/fopen_variation5.phpt')
-rw-r--r--ext/standard/tests/file/fopen_variation5.phpt24
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/standard/tests/file/fopen_variation5.phpt b/ext/standard/tests/file/fopen_variation5.phpt
index 975560f5ce..142259d045 100644
--- a/ext/standard/tests/file/fopen_variation5.phpt
+++ b/ext/standard/tests/file/fopen_variation5.phpt
@@ -5,9 +5,9 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
--FILE--
<?php
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
- * Description: Open a file or a URL and return a file pointer
+ * Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
@@ -40,7 +40,7 @@ chdir($workingDir);
//define the files to go into these directories, create one in dir2
echo "\n--- testing include path ---\n";
-set_include_path($newIncludePath);
+set_include_path($newIncludePath);
$modes = array("r", "r+", "rt");
foreach($modes as $mode) {
test_fopen($mode);
@@ -60,7 +60,7 @@ rmdir($thisTestDir);
function test_fopen($mode) {
global $scriptFile, $secondFile, $firstFile, $filename;
-
+
// create a file in the middle directory
$h = fopen($secondFile, "w");
fwrite($h, (binary) "in dir2");
@@ -77,44 +77,44 @@ function test_fopen($mode) {
$h = fopen($firstFile, "w");
fwrite($h, (binary) "in dir1");
fclose($h);
-
+
//should now read dir1 file
$h = fopen($filename, $mode, true);
fpassthru($h);
fclose($h);
echo "\n";
-
+
// create a file in working directory
$h = fopen($filename, "w");
fwrite($h, (binary) "in working dir");
fclose($h);
-
+
//should still read dir1 file
$h = fopen($filename, $mode, true);
fpassthru($h);
fclose($h);
echo "\n";
-
+
unlink($firstFile);
unlink($secondFile);
-
+
//should read the file in working dir
$h = fopen($filename, $mode, true);
fpassthru($h);
fclose($h);
echo "\n";
-
+
// create a file in the script directory
$h = fopen($scriptFile, "w");
fwrite($h, (binary) "in script dir");
fclose($h);
-
+
//should read the file in script dir
$h = fopen($filename, $mode, true);
fpassthru($h);
fclose($h);
echo "\n";
-
+
//cleanup
unlink($filename);
unlink($scriptFile);