Skip to content

Commit

Permalink
Fix buffer closing.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-svirin committed Jan 28, 2025
1 parent 77c4d4a commit 85de564
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
WIN_ETH_DRIVER := 'Ethernet adapter Ethernet 3'
WIN_ETH_DRIVER := 'Ethernet adapter Ethernet'

ifdef WIN_ETH_DRIVER
WIN_ETH_IP := $(shell ipconfig.exe | grep ${WIN_ETH_DRIVER} -A3 | cut -d':' -f 2 | tail -n1 | sed -e 's/\s*//g')
Expand Down
2 changes: 0 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.2'

services:
php-cli-ebics-client-php:
container_name: php-cli-ebics-client-php
Expand Down
4 changes: 3 additions & 1 deletion src/Models/Buffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ public function open(string $mode): void

public function close(): void
{
fclose($this->stream);
if (is_resource($this->stream)) {
fclose($this->stream);
}
}

public function rewind(): void
Expand Down

0 comments on commit 85de564

Please sign in to comment.