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 #78770: Incorrect callability check inside internal methods --EXTENSIONS-- in..

Decoded Output download

--TEST--
Bug #78770: Incorrect callability check inside internal methods
--EXTENSIONS--
intl
--FILE--
<?php

class Test {
    public function method() {
        IntlChar::enumCharTypes([$this, 'privateMethod']);
        IntlChar::enumCharTypes('self::privateMethod');
    }

    private function privateMethod($start, $end, $name) {
    }
}

(new Test)->method();

?>
===DONE===
--EXPECT--
===DONE===

Did this file decode correctly?

Original Code

--TEST--
Bug #78770: Incorrect callability check inside internal methods
--EXTENSIONS--
intl
--FILE--
<?php

class Test {
    public function method() {
        IntlChar::enumCharTypes([$this, 'privateMethod']);
        IntlChar::enumCharTypes('self::privateMethod');
    }

    private function privateMethod($start, $end, $name) {
    }
}

(new Test)->method();

?>
===DONE===
--EXPECT--
===DONE===

Function Calls

None

Variables

None

Stats

MD5 afc367cf81675aa40a495b5b03e69e11
Eval Count 0
Decode Time 98 ms