Skip to content

Commit 6b663bb

Browse files
Merge pull request from GHSA-m496-x567-f98c
Fixing a bug in Zend Framework's Stream HTTP Wrapper
2 parents 368a585 + ecddab5 commit 6b663bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Zend/Http/Response/Stream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function __destruct()
227227
fclose($this->stream);
228228
$this->stream = null;
229229
}
230-
if($this->_cleanup) {
230+
if($this->_cleanup && is_string($this->stream_name) && file_exists($this->stream_name)) {
231231
@unlink($this->stream_name);
232232
}
233233
}

0 commit comments

Comments
 (0)