Closed ahoshaiyan closed 4 years ago
Thanks for the report @eachali - i'll see if I can re-produce this on my system- I'll keep you posted.
Mike
I've commited some changes that should resolve the issue under 7.4; this will be included in the next release.
https://github.com/mikepultz/netdns2/commit/1d61f1efaba56a0bb04ac3a546b44610c07308b9
Thanks @eachali,
Mike
I have faced this little bug when using Net_DNS2 with PHP 7.4. The following code is used to reproduce the problem:
In the second query, inside
Sockets.php
,$data
will be null and in previuos versions of PHP when trying to access a null value as an arrayNULL
will be returned, but in 7.4 an exception is thrown.Thank you for reading this issue