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-- Bug #24436 (isset()/empty() produce errors with non-existent variables in classes..

Decoded Output download

--TEST--
Bug #24436 (isset()/empty() produce errors with non-existent variables in classes)
--INI--
error_reporting=2047
--FILE--
<?php
class test {
        function __construct() {
                if (empty($this->test[0][0])) { print "test1
";}
                if (!isset($this->test[0][0])) { print "test2
";}
                if (empty($this->test)) { print "test1
";}
                if (!isset($this->test)) { print "test2
";}
        }
}

$test1 = new test();
?>
--EXPECT--
test1
test2
test1
test2

Did this file decode correctly?

Original Code

--TEST--
Bug #24436 (isset()/empty() produce errors with non-existent variables in classes)
--INI--
error_reporting=2047
--FILE--
<?php
class test {
        function __construct() {
                if (empty($this->test[0][0])) { print "test1\n";}
                if (!isset($this->test[0][0])) { print "test2\n";}
                if (empty($this->test)) { print "test1\n";}
                if (!isset($this->test)) { print "test2\n";}
        }
}

$test1 = new test();
?>
--EXPECT--
test1
test2
test1
test2

Function Calls

None

Variables

None

Stats

MD5 8b06d0a5e549223257796f7de5edcf97
Eval Count 0
Decode Time 95 ms