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, setSeed --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif...

Decoded Output download

--TEST--
Test Imagick, setSeed
--SKIPIF--
<?php
require_once(dirname(__FILE__) . '/skipif.inc');
checkClassMethods('Imagick', array('setSeed'));
?>
--FILE--
<?php


function setSeed() {

	Imagick::setSeed(50);

    $imagick = new \Imagick();
    $imagick->newPseudoImage(256, 256, "plasma:tomato-steelblue");

//    $imagick->writeImage(__DIR__ . '/cannyEdgeImage_output_image.png');
//    $imagick->getImageBlob();

	Imagick::setSeed(50);

    $imagick = new \Imagick();
    $imagick->newPseudoImage(256, 256, "plasma:tomato-steelblue");

    // TODO - compare images.
}

setSeed() ;
echo "Ok";
?>
--EXPECTF--
Ok

Did this file decode correctly?

Original Code

--TEST--
Test Imagick, setSeed
--SKIPIF--
<?php
require_once(dirname(__FILE__) . '/skipif.inc');
checkClassMethods('Imagick', array('setSeed'));
?>
--FILE--
<?php


function setSeed() {

	Imagick::setSeed(50);

    $imagick = new \Imagick();
    $imagick->newPseudoImage(256, 256, "plasma:tomato-steelblue");

//    $imagick->writeImage(__DIR__ . '/cannyEdgeImage_output_image.png');
//    $imagick->getImageBlob();

	Imagick::setSeed(50);

    $imagick = new \Imagick();
    $imagick->newPseudoImage(256, 256, "plasma:tomato-steelblue");

    // TODO - compare images.
}

setSeed() ;
echo "Ok";
?>
--EXPECTF--
Ok

Function Calls

dirname 1

Variables

None

Stats

MD5 34f0fef33e7efc9caa9218ccf8720b3f
Eval Count 0
Decode Time 91 ms