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-- Test fprintf() function (errors) --FILE-- <?php /* Testing Error Conditions */ e..

Decoded Output download

*** Testing Error Conditions ***

Did this file decode correctly?

Original Code

--TEST--
Test fprintf() function (errors)
--FILE--
<?php

/* Testing Error Conditions */
echo "*** Testing Error Conditions ***\n";

/* zero argument */
try {
    var_dump( fprintf() );
} catch (TypeError $e) {
    echo $e->getMessage(), "\n";
}

/* scalar argument */
try {
    var_dump( fprintf(3) );
} catch (TypeError $e) {
    echo $e->getMessage(), "\n";
}

/* NULL argument */
try {
    var_dump( fprintf(NULL) );
} catch (TypeError $e) {
    echo $e->getMessage(), "\n";
}

echo "Done\n";
?>
--EXPECT--
*** Testing Error Conditions ***
fprintf() expects at least 2 arguments, 0 given
fprintf() expects at least 2 arguments, 1 given
fprintf() expects at least 2 arguments, 1 given
Done

Function Calls

None

Variables

None

Stats

MD5 bcb21279d62ded38e18ef32cef45b689
Eval Count 0
Decode Time 81 ms