bug70454.phpt 340 B

123456789101112131415161718
  1. --TEST--
  2. Bug #70454 (IntlChar::forDigit second parameter should be optional)
  3. --EXTENSIONS--
  4. intl
  5. --FILE--
  6. <?php
  7. var_dump(IntlChar::forDigit(0));
  8. var_dump(IntlChar::forDigit(3));
  9. var_dump(IntlChar::forDigit(3, 10));
  10. var_dump(IntlChar::forDigit(10));
  11. var_dump(IntlChar::forDigit(10, 16));
  12. ?>
  13. --EXPECT--
  14. int(48)
  15. int(51)
  16. int(51)
  17. int(0)
  18. int(97)