Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 86) sorted by relevance

1234

/PHP-8.0/ext/json/
H A Djson_parser.y36 if (parser->max_depth && parser->depth >= parser->max_depth) { \
91 if (parser->methods.object_start && FAILURE == parser->methods.object_start(parser)) {
99 if (parser->methods.object_end && FAILURE == parser->methods.object_end(parser, &$$)) {
120 parser->methods.object_create(parser, &$$);
129 parser->methods.object_create(parser, &$$);
147 if (parser->methods.array_start && FAILURE == parser->methods.array_start(parser)) {
155 if (parser->methods.array_end && FAILURE == parser->methods.array_end(parser, &$$)) {
176 parser->methods.array_create(parser, &$$);
185 parser->methods.array_create(parser, &$$);
186 parser->methods.array_append(parser, &$$, &$1);
[all …]
H A Dphp_json_parser.h26 php_json_parser *parser, zval *array);
28 php_json_parser *parser, zval *array, zval *zvalue);
30 php_json_parser *parser);
32 php_json_parser *parser, zval *object);
34 php_json_parser *parser, zval *object);
38 php_json_parser *parser);
40 php_json_parser *parser, zval *object);
62 php_json_parser *parser,
71 php_json_parser *parser,
80 PHP_JSON_API int php_json_parse(php_json_parser *parser);
[all …]
/PHP-8.0/ext/xml/
H A Dcompat.c362 xmlStopParser(parser->parser); in _external_entity_ref_handler()
468 if (parser->parser == NULL) { in XML_ParserCreate_MM()
477 parser->parser->wellFormed = 0; in XML_ParserCreate_MM()
480 parser->parser->sax2 = 1; in XML_ParserCreate_MM()
575 return parser->parser->errNo; in XML_GetErrorCode()
702 return parser->parser->input->col; in XML_GetCurrentColumnNumber()
709 (parser->parser->input->cur - parser->parser->input->base); in XML_GetCurrentByteIndex()
718 (parser->parser->input->cur - parser->parser->input->base); in XML_GetCurrentByteCount()
734 if (parser->parser->myDoc) { in XML_ParserFree()
736 parser->parser->myDoc = NULL; in XML_ParserFree()
[all …]
H A Dxml.c366 if (parser->parser) { in xml_parser_free_obj()
367 XML_ParserFree(parser->parser); in xml_parser_free_obj()
728 xml_call_handler(parser, &parser->endElementHandler, parser->endElementPtr, 2, args, &retval); in _xml_endElementHandler()
755 efree(parser->ltags[parser->level-1]); in _xml_endElementHandler()
839 if (parser->level <= XML_MAXLEVEL && parser->level > 0 && (doprint || (! parser->skipwhite))) { in _xml_characterDataHandler()
842 _xml_add_to_info(parser,SKIP_TAGSTART(parser->ltags[parser->level-1])); in _xml_characterDataHandler()
883 if (parser && !Z_ISUNDEF(parser->defaultHandler)) { in _xml_defaultHandler()
888 xml_call_handler(parser, &parser->defaultHandler, parser->defaultPtr, 2, args, &retval); in _xml_defaultHandler()
1058 XML_SetUserData(parser->parser, parser); in php_xml_parser_create_impl()
1371 RETVAL_LONG(XML_GetCurrentLineNumber(parser->parser)); in PHP_FUNCTION()
[all …]
H A Dxml.stub.php9 function xml_set_object(XMLParser $parser, object $object): bool {} argument
18 function xml_set_character_data_handler(XMLParser $parser, $handler): bool {} argument
24 function xml_set_default_handler(XMLParser $parser, $handler): bool {} argument
30 function xml_set_notation_decl_handler(XMLParser $parser, $handler): bool {} argument
49 function xml_get_error_code(XMLParser $parser): int {} argument
53 function xml_get_current_line_number(XMLParser $parser): int {} argument
55 function xml_get_current_column_number(XMLParser $parser): int {} argument
57 function xml_get_current_byte_index(XMLParser $parser): int {} argument
59 function xml_parser_free(XMLParser $parser): bool {} argument
62 function xml_parser_set_option(XMLParser $parser, int $option, $value): bool {} argument
[all …]
H A Dxml_arginfo.h14 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
19 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
25 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
44 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
50 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
57 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
71 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
75 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
81 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
/PHP-8.0/sapi/cli/
H A Dphp_http_parser.c326 parser->flags = 0; in php_http_parser_execute()
355 parser->flags = 0; in php_http_parser_execute()
1511 parser->state = state; in php_http_parser_execute()
1513 parser->index = index; in php_http_parser_execute()
1514 parser->nread = nread; in php_http_parser_execute()
1527 if (parser->http_major > 0 && parser->http_minor > 0) { in php_http_should_keep_alive()
1554 parser->type = t; in php_http_parser_init()
1556 parser->nread = 0; in php_http_parser_init()
1557 parser->upgrade = 0; in php_http_parser_init()
1558 parser->flags = 0; in php_http_parser_init()
[all …]
/PHP-8.0/ext/xml/tests/
H A Dxml_parser_set_option_basic.phpt13 $parser = xml_parser_create_ns();
15 var_dump(xml_parser_get_option($parser, XML_OPTION_CASE_FOLDING));
16 var_dump(xml_parser_get_option($parser, XML_OPTION_TARGET_ENCODING));
18 var_dump(xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 1));
21 var_dump(xml_parser_get_option($parser, XML_OPTION_CASE_FOLDING));
22 var_dump(xml_parser_get_option($parser, XML_OPTION_TARGET_ENCODING));
24 var_dump(xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0));
27 var_dump(xml_parser_get_option($parser, XML_OPTION_CASE_FOLDING));
28 var_dump(xml_parser_get_option($parser, XML_OPTION_TARGET_ENCODING));
31 var_dump(xml_parser_get_option($parser, XML_OPTION_TARGET_ENCODING));
[all …]
H A Dxml011.phpt9 function start_elem($parser,$name,$attribs) {
19 $parser = xml_parser_create();
20 xml_parse_into_struct($parser, $xml, $vals, $index);
22 xml_parser_free($parser);
25 $parser = xml_parser_create();
26 xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0);
27 xml_set_element_handler($parser,'start_elem','end_elem');
28 xml_set_element_handler($parser,'start_elem',NULL);
29 xml_parse($parser, $xml, TRUE);
31 xml_parser_free($parser);
H A Dxml_parser_get_option_variation3.phpt9 $parser = xml_parser_create();
11 var_dump(xml_parser_get_option($parser, XML_OPTION_SKIP_TAGSTART));
12 var_dump(xml_parser_get_option($parser, XML_OPTION_SKIP_WHITE));
14 var_dump(xml_parser_set_option($parser, XML_OPTION_SKIP_TAGSTART, 7));
15 var_dump(xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1));
17 var_dump(xml_parser_get_option($parser, XML_OPTION_SKIP_TAGSTART));
18 var_dump(xml_parser_get_option($parser, XML_OPTION_SKIP_WHITE));
H A Dxml_set_start_namespace_decl_handler_basic.phpt19 $parser = xml_parser_create_ns();
20 xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
22 var_dump(xml_set_start_namespace_decl_handler( $parser, "Namespace_Start_Handler" ));
23 var_dump(xml_set_end_namespace_decl_handler( $parser, "Namespace_End_Handler" ));
25 xml_parse( $parser, $xml, true);
26 xml_parser_free( $parser );
30 function Namespace_Start_Handler( $parser, $prefix, $uri ) {
36 function Namespace_End_Handler($parser, $prefix) {
41 function DefaultHandler( $parser, $data ) {
H A Dxml009.phpt2 XML parser test, default namespaces
10 function start_elem($parser,$name,$attribs) {
26 $parser = xml_parser_create_ns("ISO-8859-1","@");
27 xml_set_element_handler($parser,'start_elem','end_elem');
28 xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0);
29 xml_parse($parser, $xml);
30 xml_parser_free($parser);
H A Dbug46699.phpt2 Bug #46699: (xml_parse crash when parser is namespace aware)
10 function defaultfunc($parser, $data)
23 $parser = xml_parser_create_ns("ISO-8859-1","@");
24 xml_set_default_handler($parser,'defaultfunc');
25 xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0);
26 xml_parse($parser, $xml);
27 xml_parser_free($parser);
H A Dxml010.phpt2 XML parser test, attributes
10 function start_elem($parser,$name,$attribs) {
30 $parser = xml_parser_create_ns("ISO-8859-1","@");
31 xml_set_element_handler($parser,'start_elem','end_elem');
32 xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0);
33 xml_parse($parser, $xml);
34 xml_parser_free($parser);
H A Dbug72793.phpt9 var $parser;
13 $this->parser = xml_parser_create();
14 xml_set_object($this->parser, $this);
19 xml_parse($this->parser, $data);
23 xml_parser_free($this->parser);
H A Dbug25666.phpt10 function start_elem($parser,$name,$attribs) {
26 $parser = xml_parser_create_ns("ISO-8859-1","@");
27 xml_set_element_handler($parser,'start_elem','end_elem');
28 xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0);
29 xml_parse($parser, $xml);
30 xml_parser_free($parser);
H A Dxml_set_processing_instruction_handler_basic.phpt14 function PIHandler($parser, $target, $data)
22 $parser = xml_parser_create();
23 xml_set_object($parser, $this);
24 xml_set_processing_instruction_handler($parser, "PIHandler");
25 xml_parse($parser, $data, true);
26 xml_parser_free($parser);
H A Dbug73135.phpt9 function start_elem($parser, $xml) {
10 xml_parse($parser, $xml);
19 $parser = xml_parser_create_ns();
20 xml_set_element_handler($parser, 'start_elem', 'ahihi');
21 xml_parse($parser, $xml);
H A Dxml007.phpt13 function startHandler($parser,$tag,$attr)
18 function endHandler($parser,$tag)
24 $parser = xml_parser_create('ISO-8859-1');
25 xml_set_element_handler($parser, "startHandler", "endHandler");
26 xml_parse_into_struct($parser, $xmldata, $struct, $index);
H A Dbug30266.phpt22 $parser = xml_parser_create();
24 xml_set_object($parser, $this);
26 xml_set_element_handler($parser, 'startHandler', 'endHandler');
28 xml_parse($parser, $data, true);
30 xml_parser_free($parser);
H A Dbug71592.phpt10 // parser actually stops after the handler returns FALSE.
22 $parser = xml_parser_create_ns('UTF-8');
23 xml_set_external_entity_ref_handler($parser, function () {
26 xml_parse($parser, $xml);
27 var_dump(xml_get_error_code($parser) === XML_ERROR_EXTERNAL_ENTITY_HANDLING);
H A Dbug26614.phpt56 function startElement($parser, $name, $attrs) {
58 xml_get_current_line_number($parser),
59 xml_get_current_column_number($parser),
60 xml_get_current_byte_index($parser));
63 function endElement($parser, $name) {
65 xml_get_current_line_number($parser),
66 xml_get_current_column_number($parser),
67 xml_get_current_byte_index($parser));
70 function characterData($parser, $data) {
H A Dbug26614_libxml.phpt56 function startElement($parser, $name, $attrs) {
58 xml_get_current_line_number($parser),
59 xml_get_current_column_number($parser),
60 xml_get_current_byte_index($parser));
63 function endElement($parser, $name) {
65 xml_get_current_line_number($parser),
66 xml_get_current_column_number($parser),
67 xml_get_current_byte_index($parser));
70 function characterData($parser, $data) {
H A Dxml001.phpt2 XML parser test, function callbacks
6 XML_SAX_IMPL == 'libxml' && die('skip this test is not intended for libxml SAX parser');
34 function startElement($parser, $name, $attribs)
45 function endElement($parser, $name)
50 function characterData($parser, $data)
55 function PIHandler($parser, $target, $data)
60 function defaultHandler($parser, $data)
69 function externalEntityRefHandler($parser, $openEntityNames, $base, $systemId, $publicId)
H A Dxml003.phpt2 XML parser test, xml_set_object callbacks
6 XML_SAX_IMPL == 'libxml' && die('skip this test is not intended for libxml SAX parser');
14 function startElement($parser, $name, $attribs)
24 function endElement($parser, $name)
28 function characterData($parser, $data)
32 function PIHandler($parser, $target, $data)
36 function defaultHandler($parser, $data)
44 function externalEntityRefHandler($parser, $openEntityNames, $base, $systemId, $publicId)

Completed in 37 milliseconds

1234