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 Imagick, getType --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif...
Decoded Output download
--TEST--
Test Imagick, getType
--SKIPIF--
<?php
require_once(dirname(__FILE__) . '/skipif.inc');
checkClassMethods('Imagick', array('getType'));
?>
--FILE--
<?php
function test_getType() {
$imagick = new \Imagick(__DIR__ . '/Biter_500.jpg');
$type = $imagick->getType();
echo "Type is " . $type . "
";
}
test_getType() ;
echo "Ok";
?>
--EXPECTF--
Type is 0
Ok
Did this file decode correctly?
Original Code
--TEST--
Test Imagick, getType
--SKIPIF--
<?php
require_once(dirname(__FILE__) . '/skipif.inc');
checkClassMethods('Imagick', array('getType'));
?>
--FILE--
<?php
function test_getType() {
$imagick = new \Imagick(__DIR__ . '/Biter_500.jpg');
$type = $imagick->getType();
echo "Type is " . $type . "\n";
}
test_getType() ;
echo "Ok";
?>
--EXPECTF--
Type is 0
Ok
Function Calls
dirname | 1 |
Stats
MD5 | 9e8b7c236c980c5840b9def9fd912736 |
Eval Count | 0 |
Decode Time | 87 ms |