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-- Psr\Cache\CacheException --SKIPIF-- <?php include('skip.inc'); ?> --FILE-- <?php ..
Decoded Output download
--TEST--
Psr\Cache\CacheException
--SKIPIF--
<?php include('skip.inc'); ?>
--FILE--
<?php
use Psr\Cache\CacheException;
class MyCacheException extends Exception implements CacheException {}
$ex = new MyCacheException('test');
var_dump($ex instanceof CacheException);
var_dump($ex instanceof Exception);
try {
throw $ex;
} catch( CacheException $e ) {
var_dump($e->getMessage());
}
--EXPECT--
bool(true)
bool(true)
string(4) "test"
?>
Did this file decode correctly?
Original Code
--TEST--
Psr\Cache\CacheException
--SKIPIF--
<?php include('skip.inc'); ?>
--FILE--
<?php
use Psr\Cache\CacheException;
class MyCacheException extends Exception implements CacheException {}
$ex = new MyCacheException('test');
var_dump($ex instanceof CacheException);
var_dump($ex instanceof Exception);
try {
throw $ex;
} catch( CacheException $e ) {
var_dump($e->getMessage());
}
--EXPECT--
bool(true)
bool(true)
string(4) "test"
Function Calls
None |
Stats
MD5 | dcdabdffc206a52b09e6c93e59053928 |
Eval Count | 0 |
Decode Time | 91 ms |