php-fpm (8.0) strange error related to smbclient

From: Xavier Humbert <xavier_at_groumpf.org>
Date: Fri, 04 Feb 2022 20:20:33 UTC
Hi,

I recently upgraded my whole php stuff from 7.3 to 8.0 via portupgrade

All went flawlessly. But when I want to start php-fpm, I got this error 
about which Google knows nothing :

> [root@numenor php80]# service php-fpm restart
> Performing sanity check on php-fpm configuration:
> <br />
> <b>Fatal error</b>:  Duplicate parameter name $oldstate for function 
> smbclient_rename() in <b>Unknown</b> on line <b>0</b><br />
I eventually grepped the whole /usr/local/etc AND /usr/local/www 
directories for this parameter with no success

Where the hell does this come from ? Samba, obviously, a grep in 
/usr/local/lib/php matches in smbclient.so

Also, libsbmclient-php sources show this parameter twice :
https://github.com/eduardok/libsmbclient-php/blob/master/smbclient.c#L189

But how fix this, any idea May I fill a PR ?

Cheers,

Xavier

--
Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
https://www.amdh.fr