Created attachment 233856 [details] Upgrade to 1.5.2 Version 1.5.0 produces errors when used with PHP-8: PHP Fatal error: Uncaught ValueError: fread(): Argument #2 ($length) must be greater than 0 in /usr/local/share/pear/Net/DNS2/Cache/File. It has been fixed in 1.5.2.
Created attachment 233879 [details] Upgrade to 1.5.2 The problem encountered with package.xml is common to many ports when using php80-pear-1.10.12: it is better to fix that in Mk/Uses/pear.mk.
Created attachment 233889 [details] Upgrade to 1.5.2 Adding two more patches (not yet released) for a better compatibility with PHP-8.0. See https://github.com/mikepultz/netdns2/commit/1284c4b1f0a0e1fe087b4fec7dff960d0527e273#diff-ed3054beeb38cda5da1a8dd44a4278af20bdfb259fc357f39294b3f8d44e7206
(In reply to Thierry Thomas from comment #2) I think it's OK to use GH_TAGNAME=1284c4b and remove DISTVERSIONPREFIX.
Created attachment 233894 [details] Upgrade to 1.5.2+ New patch, using TAGNAME.
LGTM. Thanks!
Committed, thanks!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=fd4268a39c5ae8566683f2393772a31bc387dfe7 commit fd4268a39c5ae8566683f2393772a31bc387dfe7 Author: Thierry Thomas <thierry@FreeBSD.org> AuthorDate: 2022-05-11 15:18:30 +0000 Commit: Thierry Thomas <thierry@FreeBSD.org> CommitDate: 2022-05-15 09:29:47 +0000 dns/pear-Net_DNS2: upgrade to 1.5.2 Version 1.5.0 produces errors when used with PHP-8: PHP Fatal error: Uncaught ValueError: fread(): Argument #2 ($length) must be greater than 0 in /usr/local/share/pear/Net/DNS2/Cache/File. It has been fixed in 1.5.2. PR: 263924 Approved by: sunpoet (maintainer) dns/pear-Net_DNS2/Makefile | 7 ++++++- dns/pear-Net_DNS2/distinfo | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-)