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

From: Date: Mon, 03 Jun 2019 09:47:42 +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-221092@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.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


Thread (13 messages)

« previous php.bugs (#221092) next »