summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/htmlentities01.phpt
blob: 4ab49472d1f38fd7bf9714e9c09ff7186e7fccdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
htmlentities() test 1 (cp1252)
--INI--
output_handler=
mbstring.internal_encoding=pass
--FILE--
<?php
	var_dump(htmlentities("\x82\x86\x99\x9f", ENT_QUOTES, 'cp1252'));
	var_dump(htmlentities("\x80\xa2\xa3\xa4\xa5", ENT_QUOTES, 'cp1252'));
?>
--EXPECT--
string(28) "&sbquo;&dagger;&trade;&Yuml;"
string(32) "&euro;&cent;&pound;&curren;&yen;"