diff --git a/composer.json b/composer.json index 6ab6100..3e3e494 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "icewind/smb", + "name": "limanmys/php-smb", "description": "php wrapper for smbclient and libsmbclient-php", "license": "MIT", "authors": [ @@ -9,7 +9,7 @@ } ], "require": { - "php": ">=7.2", + "php": ">=8.1", "icewind/streams": ">=0.7.3" }, "require-dev": { diff --git a/src/Native/NativeState.php b/src/Native/NativeState.php index 088e6f7..bccd6d0 100644 --- a/src/Native/NativeState.php +++ b/src/Native/NativeState.php @@ -291,7 +291,7 @@ public function read($file, int $bytes, string $path): string { */ public function write($file, string $data, string $path, ?int $length = null): int { /** @var int $result */ - $result = @smbclient_write($this->state, $file, $data, $length); + $result = @smbclient_write($this->state, $file, $data); $this->testResult($result, $path); return $result;