From nobody Sat Feb 5 10:35:35 2022 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id F370E19ADE9B for ; Sat, 5 Feb 2022 10:35:43 +0000 (UTC) (envelope-from xavier@groumpf.org) Received: from aragorn.amdh.fr (aragorn.groumpf.org [176.31.180.205]) by mx1.freebsd.org (Postfix) with ESMTP id 4JrTML1ksqz3BvP for ; Sat, 5 Feb 2022 10:35:42 +0000 (UTC) (envelope-from xavier@groumpf.org) Received: from numenor.groumpf.org (unknown [78.251.129.10]) by aragorn.amdh.fr (Postfix) with ESMTP id B5F465F768 for ; Sat, 5 Feb 2022 11:35:40 +0100 (CET) Received: from numenor.groumpf.org (localhost [127.0.0.1]) by numenor.groumpf.org (Postfix) with ESMTP id 24ABD1E3BDB for ; Sat, 5 Feb 2022 11:35:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groumpf.org; h= in-reply-to:from:from:references:content-language:subject :subject:user-agent:mime-version:date:date:message-id :content-type:content-type:received:received; s=dkim; t= 1644057335; x=1644921336; bh=li6I+PDM6/aAT2IQLpjvLz0nTZe90aR8poF nvb4SIl8=; b=R02vz9moGGLn81MtqXfgnePIURaGJcqv+NQ1KTPOieeGDiqno4L +e32knCqBOgFI5TY7QkdrQsYcNus3KWShU5pLI0v9cy/Ya8C4eGGJggoZKoOALEk lfyL4ky4BCdCFJ9THjTLk58508Uz4Cy7YDOpLXJhZOJJl0u1W+oh4C/OE9HvVRpK 3YhPwH4vT7EOV+NfKvmuQNpJ0p8eEWnggF0jjiVU8doPjqik4o3WINi/sRO8e4bo L+M0xLS3zrylrOcoXcYHQbsa0FRUBETs7UeTsBF+y+OysZmr5kuaZHuz2elNHD9+ a4rV4iCDNp4ytuWVgMrx3U9Dml7IjFDy5n8SV+O08P9QSu5QMnK0ZceMFp6W8NU0 5LE7CaBqthMNzWnwrcUUNjvubD/ULASe0fEVk7tlynyKbOccHp/XC8H/s4kJJir2 L8LS7SD+hpnTA+K3CEn74sM/1TZpg8Ljoruefx6M13t+02eVu9STL6ZkqLAcx0kS XxNmFp+diuqpThE/VvEWYlsunbw/5GBjOyHAgNb6JggQjL3tpmxWs7YY75/L1Sbg XXpi/pu2vQEGvh/M1slPRHPFMBAY1Lp90jgDAIC/0kkz9fYPpYVty68YVGl8r/R3 YF5mdGcmzN9xeFAqXlcNgAEIl4rtf3yHQvWPu42xOnBt0esoNkBZJonI= Received: from numenor.groumpf.org ([127.0.0.1]) by numenor.groumpf.org (ns3.groumpf.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id c1j8VcwyB7co for ; Sat, 5 Feb 2022 11:35:35 +0100 (CET) Received: from [192.168.100.30] (imladris.groumpf.org [192.168.100.30]) by numenor.groumpf.org (Postfix) with ESMTPSA id 618A31E3AFB for ; Sat, 5 Feb 2022 11:35:35 +0100 (CET) Content-Type: multipart/alternative; boundary="------------hTjq3zqAsEdL701ph8Oiql20" Message-ID: <6e7b5ccb-db15-73f1-fcfa-ef7733a6fee5@groumpf.org> Date: Sat, 5 Feb 2022 11:35:35 +0100 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Thunderbird/97.0 Subject: Re: php-fpm (8.0) strange error related to smbclient Content-Language: fr To: ports@freebsd.org References: <121050fe-6243-5ec2-3922-8e4c8a7ef936@groumpf.org> From: Xavier Humbert In-Reply-To: X-Rspamd-Queue-Id: 4JrTML1ksqz3BvP X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=groumpf.org header.s=dkim header.b=R02vz9mo; dmarc=none; spf=pass (mx1.freebsd.org: domain of xavier@groumpf.org designates 176.31.180.205 as permitted sender) smtp.mailfrom=xavier@groumpf.org X-Spamd-Result: default: False [-3.40 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; R_DKIM_ALLOW(-0.20)[groumpf.org:s=dkim]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:176.31.180.205]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_NA(0.00)[groumpf.org]; DKIM_TRACE(0.00)[groumpf.org:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; MLMMJ_DEST(0.00)[ports]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:16276, ipnet:176.31.0.0/16, country:FR]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------hTjq3zqAsEdL701ph8Oiql20 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------hTjq3zqAsEdL701ph8Oiql20 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi Misroslav,

I removed SMB support from Nextcoud's config, then was able to pkg 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
--------------hTjq3zqAsEdL701ph8Oiql20--