25 lines
472 B
PHP
25 lines
472 B
PHP
--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===
|
|
--EXPECTF--
|
|
Deprecated: Use of "self" in callables is deprecated in %s on line %d
|
|
===DONE===
|