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 8444cbf770e2c9f3b7673b53009932788f728447..52968ac54869715be3a7c72d064923f1e9a40024 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";
 }