Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Bug #81618: dns_get_record failure on FreeBSD --SKIPIF-- <?php if (getenv('SKIP_O..
Decoded Output download
--TEST--
Bug #81618: dns_get_record failure on FreeBSD
--SKIPIF--
<?php
if (getenv('SKIP_ONLINE_TESTS')) die('skip online test');
?>
--FILE--
<?php
$ret = dns_get_record('www.google.com', DNS_A + DNS_CNAME);
echo ($ret !== false && count($ret) > 0);
?>
--EXPECT--
1
Did this file decode correctly?
Original Code
--TEST--
Bug #81618: dns_get_record failure on FreeBSD
--SKIPIF--
<?php
if (getenv('SKIP_ONLINE_TESTS')) die('skip online test');
?>
--FILE--
<?php
$ret = dns_get_record('www.google.com', DNS_A + DNS_CNAME);
echo ($ret !== false && count($ret) > 0);
?>
--EXPECT--
1
Function Calls
getenv | 1 |
Stats
MD5 | 8fe7b2238a7015a88aa716b949b55540 |
Eval Count | 0 |
Decode Time | 86 ms |