Skip to content

Commit 3174c91

Browse files
committed
correcting stream adapter
1 parent 4a9b899 commit 3174c91

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

phalcon/Logger/Adapter/Stream.zep

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,12 @@ class Stream extends AbstractAdapter
9393
*/
9494
public function close() -> bool
9595
{
96+
var handler;
97+
9698
if (this->handler !== null) {
97-
let this->handler = null;
98-
return this->phpFclose(this->handler);
99+
let handler = this->handler,
100+
this->handler = null;
101+
return this->phpFclose(handler);
99102
}
100103

101104
return true;

0 commit comments

Comments
 (0)