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-- dns_check_record() error conditions --FILE-- <?php try { dns_check_record('')..
Decoded Output download
--TEST--
dns_check_record() error conditions
--FILE--
<?php
try {
dns_check_record('');
} catch (\ValueError $exception) {
echo $exception->getMessage() . "
";
}
try {
// A random DNS Mode
dns_check_record('php.net', 15263480);
} catch (\ValueError $exception) {
echo $exception->getMessage() . "
";
}
?>
--EXPECT--
dns_check_record(): Argument #1 ($hostname) cannot be empty
dns_check_record(): Argument #2 ($type) must be a valid DNS record type
Did this file decode correctly?
Original Code
--TEST--
dns_check_record() error conditions
--FILE--
<?php
try {
dns_check_record('');
} catch (\ValueError $exception) {
echo $exception->getMessage() . "\n";
}
try {
// A random DNS Mode
dns_check_record('php.net', 15263480);
} catch (\ValueError $exception) {
echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
dns_check_record(): Argument #1 ($hostname) cannot be empty
dns_check_record(): Argument #2 ($type) must be a valid DNS record type
Function Calls
None |
Stats
MD5 | 1d74c84aa29f66cfb68719d9679ebbbb |
Eval Count | 0 |
Decode Time | 93 ms |