Edit report at https://bugs.php.net/bug.php?id=78008&edit=1
ID: 78008
Comment by: a dot suharevs at dyninno dot lv
Reported by: a dot suharevs at dyninno dot lv
Summary: dns_check_record() always return true on Alpine
Status: Open
Type: Bug
Package: *Network Functions
Operating System: Alpine
PHP Version: 7.3.5
Block user comment: N
Private report: N
New Comment:
danack@php.net Any news regarding this fix?
Previous Comments:
------------------------------------------------------------------------
[2019-05-20 12:57:25] a dot suharevs at dyninno dot lv
updated version
------------------------------------------------------------------------
[2019-05-13 16:17:32] a dot suharevs at dyninno dot lv
Sure, uploaded new patch.
------------------------------------------------------------------------
[2019-05-13 15:25:02] danack@php.net
It's possible other people can read it, but to me that patch appears to be touching lots of
lines that don't appear to be changed. e.g.
-#ifndef MAXPACKET
+#ifndef MAXPACKET
Which makes seeing the actual change quite hard.
Is it possible for you to regenerate the patch as a smaller one?
------------------------------------------------------------------------
[2019-05-13 14:57:50] a dot suharevs at dyninno dot lv
Description:
------------
dns_check_record() always return true on systems based on MuslC libc, due to incorrect usage of Musl
libc res_search() function in php_dns_search().
Here is the issue on alpine bugtracker: https://bugs.alpinelinux.org/issues/7392
Test script:
---------------
<?php
var_dump(dns_check_record('asdasda123123.123131'));
Expected result:
----------------
bool(false)
Actual result:
--------------
bool(true)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78008&edit=1