PageRenderTime 37ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/bad/ext/mbstring/tests/htmlent.php

http://github.com/facebook/hiphop-php
PHP | 16 lines | 7 code | 1 blank | 8 comment | 0 complexity | 00825da81e148e7285ffdb67eb73099e 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. <?php
  2. // enable output encoding through output handler
  3. //ob_start("mb_output_handler");
  4. // &#64... are must be decoded on input these are not reencoded on output.
  5. // If you see &#64;&#65;&#66; on output this means input encoding fails.
  6. // If you do not see &auml;... on output this means output encoding fails.
  7. // Using UTF-8 internally allows to encode/decode ALL characters.
  8. // &128... will stay as they are since their character codes are above 127
  9. // and they do not have a named entity representaion.
  10. ?>
  11. <?php echo mb_http_input('l').'>'.mb_internal_encoding().'>'.mb_http_output();?>
  12. <?php mb_parse_str("test=&#38;&#64;&#65;&#66;&#128;&#129;&#130;&auml;&ouml;&uuml;&euro;&lang;&rang;", $test);
  13. print_r($test);
  14. ?>
  15. ===DONE===