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, getBackgroundColor --SKIPIF-- <?php require_once(dirname(__FILE__) ..
Decoded Output download
--TEST--
Test Imagick, getBackgroundColor
--SKIPIF--
<?php
require_once(dirname(__FILE__) . '/skipif.inc');
checkClassMethods('Imagick', array('getBackgroundColor'));
?>
--FILE--
<?php
function getBackgroundColor() {
$imagick = new \Imagick();
$background_color = $imagick->getBackgroundColor();
/** @var $background_color \ImagickPixel */
echo "Color is: " . $background_color->getColorAsString() . "
";
$imagick->setBackgroundColor('red');
$background_color = $imagick->getBackgroundColor();
/** @var $background_color \ImagickPixel */
echo "Color is now: " . $background_color->getColorAsString() . "
";
}
getBackgroundColor() ;
echo "Ok";
?>
--EXPECTF--
Color is: srgb(255,255,255)
Color is now: srgb(255,0,0)
Ok
Did this file decode correctly?
Original Code
--TEST--
Test Imagick, getBackgroundColor
--SKIPIF--
<?php
require_once(dirname(__FILE__) . '/skipif.inc');
checkClassMethods('Imagick', array('getBackgroundColor'));
?>
--FILE--
<?php
function getBackgroundColor() {
$imagick = new \Imagick();
$background_color = $imagick->getBackgroundColor();
/** @var $background_color \ImagickPixel */
echo "Color is: " . $background_color->getColorAsString() . "\n";
$imagick->setBackgroundColor('red');
$background_color = $imagick->getBackgroundColor();
/** @var $background_color \ImagickPixel */
echo "Color is now: " . $background_color->getColorAsString() . "\n";
}
getBackgroundColor() ;
echo "Ok";
?>
--EXPECTF--
Color is: srgb(255,255,255)
Color is now: srgb(255,0,0)
Ok
Function Calls
dirname | 1 |
Stats
MD5 | a08bcf706a3ab0b23127bd8c7b0f15be |
Eval Count | 0 |
Decode Time | 83 ms |