diff --git a/ext/standard/tests/file/userstreams.phpt b/ext/standard/tests/file/userstreams.phpt index f35dbc9e7cb..0f60ca022cc 100644 --- a/ext/standard/tests/file/userstreams.phpt +++ b/ext/standard/tests/file/userstreams.phpt @@ -4,9 +4,9 @@ User-space streams "SEEK_END" ); -/* generate some random seek offsets */ +// generate some random seek offsets $position = 0; for ($i = 0; $i < 256; $i++) { $whence = $whence_map[array_rand($whence_map, 1)]; @@ -215,14 +226,14 @@ for ($i = 0; $i < 256; $i++) { $seeks[] = array($whence, $offset, $position); } -/* we compare the results of fgets using differing line lengths to - * test the fgets layer also */ +// we compare the results of fgets using differing line lengths to +// test the fgets layer also $line_lengths = array(1024, 256, 64, 16); $fail_count = 0; ob_start(); foreach($line_lengths as $line_length) { - /* now compare the real stream with the user stream */ + // now compare the real stream with the user stream $j = 0; rewind($tf); rewind($fp); @@ -289,12 +300,15 @@ while(!feof($fp)) { } } -if ($fail_count == 0) +if ($fail_count == 0) { echo "FGETS: OK\n"; - - +} +/**/ ?> --EXPECT-- +int(1085) +Not Registered +Registered Registered SEEK: OK FGETS: OK