Skip to content

Commit

Permalink
Test case for htmlentities() on UTF-8 strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgcai committed Apr 27, 2014
1 parent 991e92d commit 48106e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hphp/test/slow/ext_string/2266-htmlentities-utf8.php
@@ -0,0 +1,3 @@
<?php
var_dump(htmlentities("Europe’s", ENT_QUOTES, 'UTF-8'));
var_dump(htmlentities("77,39 €", ENT_QUOTES, 'UTF-8'));
2 changes: 2 additions & 0 deletions hphp/test/slow/ext_string/2266-htmlentities-utf8.php.expect
@@ -0,0 +1,2 @@
string(14) "Europe&rsquo;s"
string(12) "77,39 &euro;"

0 comments on commit 48106e0

Please sign in to comment.