From ecddab515bc45624dde4873281038eeccdec3e9e Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 6 Apr 2021 16:36:58 -0500 Subject: [PATCH] Fixing a bug in Zend Framework's Stream HTTP Wrapper --- lib/Zend/Http/Response/Stream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Zend/Http/Response/Stream.php b/lib/Zend/Http/Response/Stream.php index 0a154c4ee43..795ae14676a 100644 --- a/lib/Zend/Http/Response/Stream.php +++ b/lib/Zend/Http/Response/Stream.php @@ -227,7 +227,7 @@ public function __destruct() fclose($this->stream); $this->stream = null; } - if($this->_cleanup) { + if($this->_cleanup && is_string($this->stream_name) && file_exists($this->stream_name)) { @unlink($this->stream_name); } }