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 chop image --SKIPIF-- <?php /* $Id: gmagick-012-chopimage.phpt 280206 2009-0..

Decoded Output download

--TEST--
Test chop image
--SKIPIF--
<?php
/* $Id: gmagick-012-chopimage.phpt 280206 2009-05-09 18:22:48Z vito $ */
if(!extension_loaded('gmagick')) die('skip');
?>
--FILE--
<?php
$gm = new Gmagick();
$filename = dirname(__FILE__) . '/test_constructor.jpg';
$gm->read("magick:rose");
$gm->chopImage(10, 10, 0, 0);
$gm->write($filename);
echo "ok";
?>
--EXPECTF--
ok

Did this file decode correctly?

Original Code

--TEST--
Test chop image
--SKIPIF--
<?php
/* $Id: gmagick-012-chopimage.phpt 280206 2009-05-09 18:22:48Z vito $ */
if(!extension_loaded('gmagick')) die('skip');
?>
--FILE--
<?php
$gm = new Gmagick();
$filename = dirname(__FILE__) . '/test_constructor.jpg';
$gm->read("magick:rose");
$gm->chopImage(10, 10, 0, 0);
$gm->write($filename);
echo "ok";
?>
--EXPECTF--
ok

Function Calls

extension_loaded 1

Variables

None

Stats

MD5 5085cb9fb42635c58ed16fbd574117fa
Eval Count 0
Decode Time 111 ms