icewind1991 / SMB

PHP wrapper for smbclient
MIT License
132 stars 53 forks source link

Deprecated warnings in NativeState file #121

Closed dogukanoksuz closed 1 year ago

dogukanoksuz commented 1 year ago

smbclient_write(): Passing null to parameter #4 ($count) of type int is deprecated /php/vendor/icewind/smb/src/Native/NativeState.php line:294

stack: php8.1 ubuntu22.04 smb connection to active directory

looks like problem persists because @ operator on php 8.1 is not suppressing all levels

dogukanoksuz commented 1 year ago

https://github.com/limanmys/php-smb/commit/b05de4fb4e76691036bd51c9e0c18fd7997b2fb4

i fixed it with this way