Re: php-fpm (8.0) strange error related to smbclient

From: Xavier Humbert <xavier_at_groumpf.org>
Date: Sat, 05 Feb 2022 10:35:35 UTC
Hi Misroslav,

I removed SMB support from Nextcoud's config, then was able topkg delete 
php80-pecl-smbclient-1.0.6

Le 2/5/22 00:01, Miroslav Lachman a écrit :
>
> This is just a wild guess but I thing there is something wrong with 
> your pecl-smbclient extension. The Fatal error is from loading this 
> extension at the start of php-fpm and not from calling some function 
> in any PHP script.
>
> There is a source code where it is really twice oldstate and twice 
> oldpath
> https://github.com/eduardok/libsmbclient-php/blob/master/smbclient.c#L189
>
> ZEND_BEGIN_ARG_INFO(arginfo_smbclient_rename, 0)
>     ZEND_ARG_INFO(0, oldstate)
>     ZEND_ARG_INFO(0, oldpath)
>     ZEND_ARG_INFO(0, oldstate)
>     ZEND_ARG_INFO(0, oldpath)
> ZEND_END_ARG_INFO()
>
> I am not a C programmer but it seems wrong to me, because PHP function 
> smbclient_rename takes 4 different parameters:
>
> smbclient_rename ( resource $state_old, string $uri_old, resource 
> $state_new, string $uri_new )
>
> I will expect something like this:
>
> ZEND_BEGIN_ARG_INFO(arginfo_smbclient_rename, 0)
>     ZEND_ARG_INFO(0, oldstate)
>     ZEND_ARG_INFO(0, oldpath)
>     ZEND_ARG_INFO(0, newstate)
>     ZEND_ARG_INFO(0, newpath)
> ZEND_END_ARG_INFO()
>
> But I don't know if this will fix it or destroy the whole universe.
>
> Miroslav Lachman
>
I opened a PR on Github

Cheers,

Xavier

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