suppress new PHP-7.4 notice about failed stream_write
authorMichael Wallner <mike@php.net>
Wed, 16 Oct 2019 11:11:08 +0000 (13:11 +0200)
committerMichael Wallner <mike@php.net>
Wed, 16 Oct 2019 11:11:08 +0000 (13:11 +0200)
tests/messagebody003.phpt

index 8444cbf..52968ac 100644 (file)
@@ -10,7 +10,7 @@ echo "Test\n";
 
 $file = new http\Message\Body(fopen(__FILE__, "r"));
 try {
 
 $file = new http\Message\Body(fopen(__FILE__, "r"));
 try {
-       $file->append("nope");
+       @$file->append("nope");
 } catch (Exception $e) {
        echo $e, "\n";
 }
 } catch (Exception $e) {
        echo $e, "\n";
 }