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, newPseudoImage --SKIPIF-- <?php require_once(dirname(__FILE__) . '/..
Decoded Output download
--TEST--
Test Imagick, newPseudoImage
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php
$canvasType = 'gradient:red';
function newPseudoImage($canvasType) {
$imagick = new \Imagick();
$imagick->newPseudoImage(300, 300, $canvasType);
$imagick->setImageFormat("png");
$bytes = $imagick->getImageBlob();
if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
}
newPseudoImage($canvasType) ;
echo "Ok";
?>
--EXPECTF--
Ok
Did this file decode correctly?
Original Code
--TEST--
Test Imagick, newPseudoImage
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php
$canvasType = 'gradient:red';
function newPseudoImage($canvasType) {
$imagick = new \Imagick();
$imagick->newPseudoImage(300, 300, $canvasType);
$imagick->setImageFormat("png");
$bytes = $imagick->getImageBlob();
if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
}
newPseudoImage($canvasType) ;
echo "Ok";
?>
--EXPECTF--
Ok
Function Calls
dirname | 1 |
Stats
MD5 | f209d0686f256b2ad19ba59e8f88a7f0 |
Eval Count | 0 |
Decode Time | 96 ms |