1--TEST-- 2xml_parser_get_option() with XML_OPTION_SKIP_TAGSTART and XML_OPTION_SKIP_WHITE 3--SKIPIF-- 4<?php 5if (!extension_loaded('xml')) die('skip xml extension not available'); 6?> 7--FILE-- 8<?php 9$parser = xml_parser_create(); 10echo "defaults:\n"; 11var_dump(xml_parser_get_option($parser, XML_OPTION_SKIP_TAGSTART)); 12var_dump(xml_parser_get_option($parser, XML_OPTION_SKIP_WHITE)); 13echo "setting:\n"; 14var_dump(xml_parser_set_option($parser, XML_OPTION_SKIP_TAGSTART, 7)); 15var_dump(xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1)); 16echo "getting:\n"; 17var_dump(xml_parser_get_option($parser, XML_OPTION_SKIP_TAGSTART)); 18var_dump(xml_parser_get_option($parser, XML_OPTION_SKIP_WHITE)); 19?> 20--EXPECT-- 21defaults: 22int(0) 23int(0) 24setting: 25bool(true) 26bool(true) 27getting: 28int(7) 29int(1) 30