bug78770.phpt 401 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Bug #78770: Incorrect callability check inside internal methods
  3. --EXTENSIONS--
  4. intl
  5. --FILE--
  6. <?php
  7. class Test {
  8. public function method() {
  9. IntlChar::enumCharTypes([$this, 'privateMethod']);
  10. IntlChar::enumCharTypes('self::privateMethod');
  11. }
  12. private function privateMethod($start, $end, $name) {
  13. }
  14. }
  15. (new Test)->method();
  16. ?>
  17. ===DONE===
  18. --EXPECT--
  19. ===DONE===