Lines Matching refs:xml_parse
2 Test xml_parse() function : error conditions
11 /* Prototype : proto int xml_parse(resource parser, string data [, int isFinal])
17 echo "*** Testing xml_parse() : error conditions ***\n";
20 //Test xml_parse with one more than the expected number of arguments
21 echo "\n-- Testing xml_parse() function with more than expected no. of arguments --\n";
26 var_dump( xml_parse(null, $data, $isFinal, $extra_arg) );
28 // Testing xml_parse with one less than the expected number of arguments
29 echo "\n-- Testing xml_parse() function with less than expected no. of arguments --\n";
31 var_dump( xml_parse(null) );
36 *** Testing xml_parse() : error conditions ***
38 -- Testing xml_parse() function with more than expected no. of arguments --
40 Warning: xml_parse() expects at most 3 parameters, 4 given in %s on line %d
43 -- Testing xml_parse() function with less than expected no. of arguments --
45 Warning: xml_parse() expects at least 2 parameters, 1 given in %s on line %d