xref: /PHP-8.0/Zend/tests/bug78770.phpt (revision befe10fd)
1--TEST--
2Bug #78770: Incorrect callability check inside internal methods
3--SKIPIF--
4<?php
5if (!extension_loaded("intl")) die("skip requires intl");
6?>
7--FILE--
8<?php
9
10class Test {
11    public function method() {
12        IntlChar::enumCharTypes([$this, 'privateMethod']);
13        IntlChar::enumCharTypes('self::privateMethod');
14    }
15
16    private function privateMethod($start, $end, $name) {
17    }
18}
19
20(new Test)->method();
21
22?>
23===DONE===
24--EXPECT--
25===DONE===
26