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-- Eos\DataStructures\Struct->__construct(); --SKIPIF-- <?php include __DIR__ . '/....
Decoded Output download
--TEST--
Eos\DataStructures\Struct->__construct();
--SKIPIF--
<?php
include __DIR__ . '/../skipif.inc';
?>
--FILE--
<?php
use Eos\DataStructures\Struct;
$item = new Struct(['item' => 'value']);
var_dump($item);
$item->item = 'newvalue';
var_dump($item);
try {
$item->foo = 'bar';
} catch (Error $e) {
echo $e->getMessage();
}
?>
--EXPECTF--
object(Eos\DataStructures\Struct)#%d (1) {
["item"]=>
string(5) "value"
}
object(Eos\DataStructures\Struct)#%d (1) {
["item"]=>
string(8) "newvalue"
}
Name foo provided is not a property in struct Eos\DataStructures\Struct
Did this file decode correctly?
Original Code
--TEST--
Eos\DataStructures\Struct->__construct();
--SKIPIF--
<?php
include __DIR__ . '/../skipif.inc';
?>
--FILE--
<?php
use Eos\DataStructures\Struct;
$item = new Struct(['item' => 'value']);
var_dump($item);
$item->item = 'newvalue';
var_dump($item);
try {
$item->foo = 'bar';
} catch (Error $e) {
echo $e->getMessage();
}
?>
--EXPECTF--
object(Eos\DataStructures\Struct)#%d (1) {
["item"]=>
string(5) "value"
}
object(Eos\DataStructures\Struct)#%d (1) {
["item"]=>
string(8) "newvalue"
}
Name foo provided is not a property in struct Eos\DataStructures\Struct
Function Calls
None |
Stats
MD5 | b7c66acd5f97c1b7598e1c90394b4030 |
Eval Count | 0 |
Decode Time | 94 ms |