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

From: Date: Mon, 13 May 2019 16:17:33 +0000
Subject: Bug #78008 [Com]: dns_check_record() always return true on Alpine
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220846@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 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.2.18 Block user comment: N Private report: N New Comment: Sure, uploaded new patch. Previous Comments: ------------------------------------------------------------------------ [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 (#220846) next »