From 61f439c1adc14626591ea071916f9d0d2683946b Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sun, 13 Apr 2008 23:48:46 +0000 Subject: [PATCH] add to 027 test (for code coverage) of fwrite on dir handle --- ext/phar/tests/027.phpt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/phar/tests/027.phpt b/ext/phar/tests/027.phpt index 83d66b0f08..f3ebdb8c95 100755 --- a/ext/phar/tests/027.phpt +++ b/ext/phar/tests/027.phpt @@ -46,6 +46,9 @@ echo "fseek on dir handle\n"; var_dump(fseek($a, 0, SEEK_END), ftell($a)); var_dump(fseek($a, -1), ftell($a)); var_dump(fseek($a, 1), ftell($a)); +echo "fwrite on dir handle\n"; +var_dump(fwrite($a, 'hi')); +closedir($a); ?> ===DONE=== --CLEAN-- @@ -72,4 +75,6 @@ int(-1) int(4) int(0) int(1) +fwrite on dir handle +int(0) ===DONE=== -- 2.40.0