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 getimagesize() function : basic functionality for shockwave-flash --EXTENSIO..

Decoded Output download

--TEST--
Test getimagesize() function : basic functionality for shockwave-flash
--EXTENSIONS--
zlib
--SKIPIF--
<?php
if (!defined("IMAGETYPE_SWC")) {
    die("skip IMAGETYPE_SWC is not available");
}
?>
--FILE--
<?php
echo "*** Testing getimagesize() : basic functionality ***
";

var_dump( getimagesize(__DIR__."/test13pix.swf", $info) );
var_dump( $info );
?>
--EXPECT--
*** Testing getimagesize() : basic functionality ***
array(5) {
  [0]=>
  int(550)
  [1]=>
  int(400)
  [2]=>
  int(13)
  [3]=>
  string(24) "width="550" height="400""
  ["mime"]=>
  string(29) "application/x-shockwave-flash"
}
array(0) {
}

Did this file decode correctly?

Original Code

--TEST--
Test getimagesize() function : basic functionality for shockwave-flash
--EXTENSIONS--
zlib
--SKIPIF--
<?php
if (!defined("IMAGETYPE_SWC")) {
    die("skip IMAGETYPE_SWC is not available");
}
?>
--FILE--
<?php
echo "*** Testing getimagesize() : basic functionality ***\n";

var_dump( getimagesize(__DIR__."/test13pix.swf", $info) );
var_dump( $info );
?>
--EXPECT--
*** Testing getimagesize() : basic functionality ***
array(5) {
  [0]=>
  int(550)
  [1]=>
  int(400)
  [2]=>
  int(13)
  [3]=>
  string(24) "width="550" height="400""
  ["mime"]=>
  string(29) "application/x-shockwave-flash"
}
array(0) {
}

Function Calls

defined 1

Variables

None

Stats

MD5 f326a71f14f3f897b3f81923863b5a0a
Eval Count 0
Decode Time 75 ms