Bug #78008 [Opn]: dns_check_record() always return true on Alpine

From: Date: Thu, 01 Aug 2019 10:27:08 +0000
Subject: Bug #78008 [Opn]: dns_check_record() always return true on Alpine
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222042@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78008&edit=1 ID: 78008 User updated 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 +PHP Version: 7.4 Block user comment: N Private report: N New Comment: Latest version of PHP have same problem Previous Comments: ------------------------------------------------------------------------ [2019-06-03 09:47:42] a dot suharevs at dyninno dot lv danack@php.net Any news regarding this fix? ------------------------------------------------------------------------ [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

« previous php.bugs (#222042) next »