PageRenderTime 36ms CodeModel.GetById 8ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/good/ext/standard/tests/strings/strtoupper.php

http://github.com/facebook/hiphop-php
PHP | 11 lines | 7 code | 0 blank | 4 comment | 0 complexity | 1ea116b88eb2ae763dc989183b2fdd48 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  1. <?hh
  2. <<__EntryPoint>>
  3. function main_entry(): void {
  4. $chars = "äöü";
  5. // Not sure which is most portable. BSD's answer to
  6. // this one. A small array based on PHP_OS should
  7. // cover a majority of systems and makes the problem
  8. // of locales transparent for the end user.
  9. setlocale(LC_CTYPE, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1", "ISO8859-1");
  10. echo strtoupper($chars)."\n";
  11. }