Re: Re: PECL pcap extension
| From: | Remi Collet | Date: | Thu, 17 Sep 2020 07:09:00 +0000 |
| Subject: | Re: Re: PECL pcap extension | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-16947@lists.php.net to get a copy of this message | ||
Hi,
Le 16/09/2020 à 22:45, Ciprian Dosoftei a écrit :
> Hi all --
>
> Just circling back for some feedback regarding the packet capture PHP
> extension :)
> URL: https://github.com/rtckit/php-pcap-ext
> I've also created a FFI counterpart
> library: https://github.com/rtckit/php-pcap-ffi
Some comments
You have some PR to review on both projects ;)
This extension (or library) requires high privileges
This mean it can only be used by root user,
of with a capability enhanced binary (cap_net_raw)
This probably reduce a lot its usage
What is the benefit of maintaining an extension if you
already have good FFI bindings ?
Especially as the extension target PHP >= 7.4 which have FFI
I will understand better an extension for PHP < 7.4 when FFI
is not available.
Also an extension is installed system-wide, but this one won't
be usable by normal users, so not really useful, while the library
can be included only for a project (composer way).
Regards,
Remi