From: Greg Beaver Date: Mon, 14 Apr 2008 16:38:58 +0000 (+0000) Subject: add test coverage for fopen() with append mode X-Git-Tag: RELEASE_2_0_0b1~414 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d06058e8167e612b2f2f8c2d41fd626222b2136;p=php add test coverage for fopen() with append mode --- diff --git a/ext/phar/tests/open_for_write_existing.phpt b/ext/phar/tests/open_for_write_existing.phpt index e9e2c05b9e..a3313b80ef 100644 --- a/ext/phar/tests/open_for_write_existing.phpt +++ b/ext/phar/tests/open_for_write_existing.phpt @@ -21,11 +21,16 @@ $fp = fopen($pname . '/b/c.php', 'wb'); fwrite($fp, 'extra'); fclose($fp); include $pname . '/b/c.php'; + +// add edge case test for append +$a = fopen($pname . '/b/c.php', 'a'); ?> ===DONE=== --CLEAN-- ---EXPECT-- +--EXPECTF-- extra +Warning: fopen(phar://%sopen_for_write_existing.phar.php/b/c.php): failed to open stream: phar error: open mode append not supported in %sopen_for_write_existing.php on line %d + ===DONE===