Re: Re: PECL pcap extension
| From: | Ciprian Dosoftei | Date: | Thu, 17 Sep 2020 13:30:32 +0000 |
| Subject: | Re: Re: PECL pcap extension | ||
| References: | 1 2 3 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-16949@lists.php.net to get a copy of this message | ||
Hi Remi --
Thank you for taking the time to look into this!
> You have some PR to review on both projects ;)
>
This is excellent, you hit on some interesting points and I will address
them in the GitHub PR conversations.
> This extension (or library) requires high privileges
> [...]
> This probably reduce a lot its usage
>
Completely agree, given the features and the requirements, it's more of an
edge case utility; for me, the use case is driven by the need to
ad-hoc/selectively audit network traffic (both from a functional standpoint
as well as security) and to enhance test suites where appropriate.
> 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.
>
The FFI library is an afterthought, you captured that perfectly :) That
said, the extension could easily be adjusted to be compatible with prior
PHP versions, that's definitely something to consider!
Thanks again for your feedback,
Ciprian