|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2010-05-25 18:18 UTC] ksenzee at gmail dot com
 Description: ------------ The documentation for dns_get_record says the return value is an array of associative arrays. It should also point out that if there is no DNS record for the domain being queried, it returns an empty string. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 12:00:01 2025 UTC | 
I can't reproduce that. Could you give a script that results in that behavior along with the version of PHP you're using? daniel@daniel-laptop:~$ cat test.php <?php var_dump(dns_get_record('fooaskljdalskdj.com')); ?> daniel@daniel-laptop:~$ php -nv; php -n test.php PHP 5.3.3-dev (cli) (built: May 23 2010 12:30:56) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies array(0) { } daniel@daniel-laptop:~$ src/php-5.2.13/sapi/cli/php test.php array(0) { }