1--TEST--
2Test get_html_translation_table() function : error conditions
3--FILE--
4<?php
5/* Prototype  : array get_html_translation_table ( [int $table [, int $quote_style [, string charset_hint]]] )
6 * Description: Returns the internal translation table used by htmlspecialchars and htmlentities
7 * Source code: ext/standard/html.c
8*/
9
10echo "*** Testing get_html_translation_table() : error conditions ***\n";
11
12// More than expected number of arguments
13echo "\n-- Testing get_html_translation_table() function with more than expected no. of arguments --\n";
14$table = HTML_ENTITIES;
15$quote_style = ENT_COMPAT;
16$extra_arg = 10;
17
18var_dump( get_html_translation_table($table, $quote_style, "UTF-8", $extra_arg) );
19
20echo "Done\n";
21?>
22--EXPECTF--
23*** Testing get_html_translation_table() : error conditions ***
24
25-- Testing get_html_translation_table() function with more than expected no. of arguments --
26
27Warning: get_html_translation_table() expects at most 3 parameters, 4 given in %s on line %d
28NULL
29Done
30