php-fpm (8.0) strange error related to smbclient

From: Xavier Humbert <>
Date: Fri, 04 Feb 2022 20:20:33 UTC

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

Also, libsbmclient-php sources show this parameter twice :

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



Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer