in xml/xml.php [444:606]
function xml_get_current_line_number(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser) {}
/**
* Get current column number for an XML parser
* @link https://php.net/manual/en/function.xml-get-current-column-number.php
* @param XMLParser|resource $parser <p>
* A reference to the XML parser to get column number from.
* </p>
* @return int|false This function returns <b>FALSE</b> if <i>parser</i> does
* not refer to a valid parser, or else it returns which column on
* the current line (as given by
* <b>xml_get_current_line_number</b>) the parser is
* currently at.
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")]
function xml_get_current_column_number(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser) {}
/**
* Get current byte index for an XML parser
* @link https://php.net/manual/en/function.xml-get-current-byte-index.php
* @param XMLParser|resource $parser <p>
* A reference to the XML parser to get byte index from.
* </p>
* @return int|false This function returns <b>FALSE</b> if <i>parser</i> does
* not refer to a valid parser, or else it returns which byte index
* the parser is currently at in its data buffer (starting at 0).
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")]
function xml_get_current_byte_index(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser) {}
/**
* Free an XML parser
* @link https://php.net/manual/en/function.xml-parser-free.php
* @param XMLParser|resource $parser A reference to the XML parser to free.
* @return bool This function returns <b>FALSE</b> if <i>parser</i> does not
* refer to a valid parser, or else it frees the parser and returns <b>TRUE</b>.
*/
#[Deprecated(since: '8.5')]
function xml_parser_free(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser): bool {}
/**
* Set options in an XML parser
* @link https://php.net/manual/en/function.xml-parser-set-option.php
* @param XMLParser|resource $parser <p>
* A reference to the XML parser to set an option in.
* </p>
* @param int $option <p>
* Which option to set. See below.
* </p>
* <p>
* The following options are available:
* <table>
* XML parser options
* <tr valign="top">
* <td>Option constant</td>
* <td>Data type</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td><b>XML_OPTION_CASE_FOLDING</b></td>
* <td>integer</td>
* <td>
* Controls whether case-folding is enabled for this
* XML parser. Enabled by default.
* </td>
* </tr>
* <tr valign="top">
* <td><b>XML_OPTION_SKIP_TAGSTART</b></td>
* <td>integer</td>
* <td>
* Specify how many characters should be skipped in the beginning of a
* tag name.
* </td>
* </tr>
* <tr valign="top">
* <td><b>XML_OPTION_SKIP_WHITE</b></td>
* <td>integer</td>
* <td>
* Whether to skip values consisting of whitespace characters.
* </td>
* </tr>
* <tr valign="top">
* <td><b>XML_OPTION_TARGET_ENCODING</b></td>
* <td>string</td>
* <td>
* Sets which target encoding to
* use in this XML parser.By default, it is set to the same as the
* source encoding used by <b>xml_parser_create</b>.
* Supported target encodings are ISO-8859-1,
* US-ASCII and UTF-8.
* </td>
* </tr>
* </table>
* </p>
* @param mixed $value <p>
* The option's new value.
* </p>
* @return bool This function returns <b>FALSE</b> if <i>parser</i> does not
* refer to a valid parser, or if the option could not be set. Else the
* option is set and <b>TRUE</b> is returned.
*/
function xml_parser_set_option(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, int $option, $value): bool {}
/**
* Get options from an XML parser
* @link https://php.net/manual/en/function.xml-parser-get-option.php
* @param XMLParser|resource $parser A reference to the XML parser to get an option from.
* @param int $option Which option to fetch. <b>XML_OPTION_CASE_FOLDING</b>
* and <b>XML_OPTION_TARGET_ENCODING</b> are available.
* See <b>xml_parser_set_option</b> for their description.
* @return string|int|bool This function returns <b>FALSE</b> if <i>parser</i> does
* not refer to a valid parser or if <i>option</i> isn't
* valid (generates also a <b>E_WARNING</b>).
* Else the option's value is returned.
*/
#[Pure]
#[LanguageLevelTypeAware(["8.3" => "string|int|bool"], default: "string|int")]
function xml_parser_get_option(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, int $option) {}
define('XML_ERROR_NONE', 0);
define('XML_ERROR_NO_MEMORY', 1);
define('XML_ERROR_SYNTAX', 2);
define('XML_ERROR_NO_ELEMENTS', 3);
define('XML_ERROR_INVALID_TOKEN', 4);
define('XML_ERROR_UNCLOSED_TOKEN', 5);
define('XML_ERROR_PARTIAL_CHAR', 6);
define('XML_ERROR_TAG_MISMATCH', 7);
define('XML_ERROR_DUPLICATE_ATTRIBUTE', 8);
define('XML_ERROR_JUNK_AFTER_DOC_ELEMENT', 9);
define('XML_ERROR_PARAM_ENTITY_REF', 10);
define('XML_ERROR_UNDEFINED_ENTITY', 11);
define('XML_ERROR_RECURSIVE_ENTITY_REF', 12);
define('XML_ERROR_ASYNC_ENTITY', 13);
define('XML_ERROR_BAD_CHAR_REF', 14);
define('XML_ERROR_BINARY_ENTITY_REF', 15);
define('XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF', 16);
define('XML_ERROR_MISPLACED_XML_PI', 17);
define('XML_ERROR_UNKNOWN_ENCODING', 18);
define('XML_ERROR_INCORRECT_ENCODING', 19);
define('XML_ERROR_UNCLOSED_CDATA_SECTION', 20);
define('XML_ERROR_EXTERNAL_ENTITY_HANDLING', 21);
define('XML_OPTION_CASE_FOLDING', 1);
define('XML_OPTION_TARGET_ENCODING', 2);
define('XML_OPTION_SKIP_TAGSTART', 3);
define('XML_OPTION_SKIP_WHITE', 4);
/**
* @since 8.4
*/
define('XML_OPTION_PARSE_HUGE', 5);
/**
* Holds the SAX implementation method.
* Can be libxml or expat.
* @link https://php.net/manual/en/xml.constants.php
*/
define('XML_SAX_IMPL', "libxml");
/**
* @since 8.0
*/
final class XMLParser {}