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-- Check Taint with dim assign contact --SKIPIF-- <?php if (!extension_loaded("taint..
Decoded Output download
skip
Did this file decode correctly?
Original Code
--TEST--
Check Taint with dim assign contact
--SKIPIF--
<?php if (!extension_loaded("taint")) print "skip"; ?>
--INI--
taint.enable=1
--FILE--
<?php
$a = "tainted string" . ".";
taint($a);
$b = array("this is");
$b[0] .= $a;
var_dump(is_tainted($b[0]));
$c = new stdClass();
$c->foo = "this is";
$c->foo .= $a;
var_dump(is_tainted($c->foo));
?>
--EXPECTF--
bool(true)
bool(true)
Function Calls
taint | 1 |
extension_loaded | 1 |
Stats
MD5 | 3f5ab2f07804e8471e47c25e5b7a5b5f |
Eval Count | 0 |
Decode Time | 90 ms |