mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
18 lines
350 B
PHP
18 lines
350 B
PHP
--TEST--
|
|
xml_parser_get_option() - Test parameter not set
|
|
--EXTENSIONS--
|
|
xml
|
|
--FILE--
|
|
<?php
|
|
|
|
$xmlParser = xml_parser_create();
|
|
|
|
try {
|
|
xml_parser_get_option ($xmlParser, 42);
|
|
} catch (ValueError $exception) {
|
|
echo $exception->getMessage() . "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
xml_parser_get_option(): Argument #2 ($option) must be a XML_OPTION_* constant
|