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 - load APP info from jpeg. --F..
Decoded Output download
--TEST--
Test getimagesize() function : basic functionality - load APP info from jpeg.
--FILE--
<?php
/*
* Load APP info from jpeg
*/
$arr['this'] = "will";
$arr['all'] = "be destroyed!";
$arr['APP1'] = "and this too";
getimagesize( __DIR__."/testAPP.jpg", $arr);
foreach ($arr as $key => $value) {
echo "$key - length: ". strlen($value) ."; md5: " . md5($value) . "
" ;
}
?>
--EXPECT--
APP1 - length: 1717; md5: 02cbf4ba6640c131422483138c968516
APP2 - length: 7275; md5: f5036ccca2031e8bf932bcbd4aca4355
APP13 - length: 42; md5: 2202998bd05e78bcb419f08c070d6f61
Did this file decode correctly?
Original Code
--TEST--
Test getimagesize() function : basic functionality - load APP info from jpeg.
--FILE--
<?php
/*
* Load APP info from jpeg
*/
$arr['this'] = "will";
$arr['all'] = "be destroyed!";
$arr['APP1'] = "and this too";
getimagesize( __DIR__."/testAPP.jpg", $arr);
foreach ($arr as $key => $value) {
echo "$key - length: ". strlen($value) ."; md5: " . md5($value) . "\n" ;
}
?>
--EXPECT--
APP1 - length: 1717; md5: 02cbf4ba6640c131422483138c968516
APP2 - length: 7275; md5: f5036ccca2031e8bf932bcbd4aca4355
APP13 - length: 42; md5: 2202998bd05e78bcb419f08c070d6f61
Function Calls
None |
Stats
MD5 | ef284995da36e3fe444fa812c9640e10 |
Eval Count | 0 |
Decode Time | 83 ms |