Home
last modified time | relevance | path

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

1234

/PHP-8.1/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.1/ext/xml/
H A Dcompat.c362 xmlStopParser(parser->parser); in _external_entity_ref_handler()
373 if (parser->parser->inSubset == 0) { in _get_entity()
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()
733 if (parser->parser->myDoc) { in XML_ParserFree()
735 parser->parser->myDoc = NULL; in XML_ParserFree()
[all …]
H A Dxml.c370 if (parser->parser) { in xml_parser_free_obj()
371 XML_ParserFree(parser->parser); in xml_parser_free_obj()
727 xml_call_handler(parser, &parser->endElementHandler, parser->endElementPtr, 2, args, &retval); in _xml_endElementHandler()
754 efree(parser->ltags[parser->level-1]); in _xml_endElementHandler()
838 if (parser->level <= XML_MAXLEVEL && parser->level > 0 && (doprint || (! parser->skipwhite))) { in _xml_characterDataHandler()
841 _xml_add_to_info(parser,SKIP_TAGSTART(parser->ltags[parser->level-1])); in _xml_characterDataHandler()
882 if (parser && !Z_ISUNDEF(parser->defaultHandler)) { in _xml_defaultHandler()
887 xml_call_handler(parser, &parser->defaultHandler, parser->defaultPtr, 2, args, &retval); in _xml_defaultHandler()
1056 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
54 function xml_get_current_line_number(XMLParser $parser): int {} argument
56 function xml_get_current_column_number(XMLParser $parser): int {} argument
58 function xml_get_current_byte_index(XMLParser $parser): int {} argument
60 function xml_parser_free(XMLParser $parser): bool {} argument
63 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.1/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.1/ext/xml/tests/
H A Dxml_parser_set_option_basic.phpt9 $parser = xml_parser_create_ns();
11 var_dump(xml_parser_get_option($parser, XML_OPTION_CASE_FOLDING));
12 var_dump(xml_parser_get_option($parser, XML_OPTION_TARGET_ENCODING));
14 var_dump(xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 1));
17 var_dump(xml_parser_get_option($parser, XML_OPTION_CASE_FOLDING));
18 var_dump(xml_parser_get_option($parser, XML_OPTION_TARGET_ENCODING));
20 var_dump(xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0));
23 var_dump(xml_parser_get_option($parser, XML_OPTION_CASE_FOLDING));
24 var_dump(xml_parser_get_option($parser, XML_OPTION_TARGET_ENCODING));
27 var_dump(xml_parser_get_option($parser, XML_OPTION_TARGET_ENCODING));
[all …]
H A Dxml011.phpt7 function start_elem($parser,$name,$attribs) {
17 $parser = xml_parser_create();
18 xml_parse_into_struct($parser, $xml, $vals, $index);
20 xml_parser_free($parser);
23 $parser = xml_parser_create();
24 xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0);
25 xml_set_element_handler($parser,'start_elem','end_elem');
26 xml_set_element_handler($parser,'start_elem',NULL);
27 xml_parse($parser, $xml, TRUE);
29 xml_parser_free($parser);
H A Dxml_parser_get_option_variation3.phpt7 $parser = xml_parser_create();
9 var_dump(xml_parser_get_option($parser, XML_OPTION_SKIP_TAGSTART));
10 var_dump(xml_parser_get_option($parser, XML_OPTION_SKIP_WHITE));
12 var_dump(xml_parser_set_option($parser, XML_OPTION_SKIP_TAGSTART, 7));
13 var_dump(xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1));
15 var_dump(xml_parser_get_option($parser, XML_OPTION_SKIP_TAGSTART));
16 var_dump(xml_parser_get_option($parser, XML_OPTION_SKIP_WHITE));
H A Dxml_set_start_namespace_decl_handler_basic.phpt15 $parser = xml_parser_create_ns();
16 xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
18 var_dump(xml_set_start_namespace_decl_handler( $parser, "Namespace_Start_Handler" ));
19 var_dump(xml_set_end_namespace_decl_handler( $parser, "Namespace_End_Handler" ));
21 xml_parse( $parser, $xml, true);
22 xml_parser_free( $parser );
26 function Namespace_Start_Handler( $parser, $prefix, $uri ) {
32 function Namespace_End_Handler($parser, $prefix) {
37 function DefaultHandler( $parser, $data ) {
H A Dgh12254.phpt8 $parser = xml_parser_create();
9 xml_set_element_handler($parser, function ($parser, $name, $attrs) {
12 var_dump(xml_parse_into_struct($parser, "<container/>", $values, $tags));
13 }, function ($parser, $name) {
17 xml_parse_into_struct($parser, "<container/>", $values, $tags);
19 xml_parse_into_struct($parser, "<container/>", $values, $tags);
H A Dxml009.phpt2 XML parser test, default namespaces
11 function start_elem($parser,$name,$attribs) {
27 $parser = xml_parser_create_ns("ISO-8859-1","@");
28 xml_set_element_handler($parser,'start_elem','end_elem');
29 xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0);
30 xml_parse($parser, $xml);
31 xml_parser_free($parser);
H A Dxml010.phpt2 XML parser test, attributes
11 function start_elem($parser,$name,$attribs) {
31 $parser = xml_parser_create_ns("ISO-8859-1","@");
32 xml_set_element_handler($parser,'start_elem','end_elem');
33 xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0);
34 xml_parse($parser, $xml);
35 xml_parser_free($parser);
H A Dbug46699.phpt2 Bug #46699: (xml_parse crash when parser is namespace aware)
11 function defaultfunc($parser, $data)
24 $parser = xml_parser_create_ns("ISO-8859-1","@");
25 xml_set_default_handler($parser,'defaultfunc');
26 xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0);
27 xml_parse($parser, $xml);
28 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 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 Dxml_set_processing_instruction_handler_basic.phpt10 function PIHandler($parser, $target, $data)
18 $parser = xml_parser_create();
19 xml_set_object($parser, $this);
20 xml_set_processing_instruction_handler($parser, "PIHandler");
21 xml_parse($parser, $data, true);
22 xml_parser_free($parser);
H A Dbug25666.phpt11 function start_elem($parser,$name,$attribs) {
27 $parser = xml_parser_create_ns("ISO-8859-1","@");
28 xml_set_element_handler($parser,'start_elem','end_elem');
29 xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0);
30 xml_parse($parser, $xml);
31 xml_parser_free($parser);
H A Dxml007.phpt14 function startHandler($parser,$tag,$attr)
19 function endHandler($parser,$tag)
25 $parser = xml_parser_create('ISO-8859-1');
26 xml_set_element_handler($parser, "startHandler", "endHandler");
27 xml_parse_into_struct($parser, $xmldata, $struct, $index);
H A Dbug71592.phpt8 // parser actually stops after the handler returns FALSE.
20 $parser = xml_parser_create_ns('UTF-8');
21 xml_set_external_entity_ref_handler($parser, function () {
24 xml_parse($parser, $xml);
25 var_dump(xml_get_error_code($parser) === XML_ERROR_EXTERNAL_ENTITY_HANDLING);
H A Dbug30266.phpt20 $parser = xml_parser_create();
22 xml_set_object($parser, $this);
24 xml_set_element_handler($parser, 'startHandler', 'endHandler');
26 xml_parse($parser, $data, true);
28 xml_parser_free($parser);
H A Dbug26614.phpt57 function startElement($parser, $name, $attrs) {
59 xml_get_current_line_number($parser),
60 xml_get_current_column_number($parser),
61 xml_get_current_byte_index($parser));
64 function endElement($parser, $name) {
66 xml_get_current_line_number($parser),
67 xml_get_current_column_number($parser),
68 xml_get_current_byte_index($parser));
71 function characterData($parser, $data) {
H A Dbug26614_libxml_gte2_11.phpt58 function startElement($parser, $name, $attrs) {
60 xml_get_current_line_number($parser),
61 xml_get_current_column_number($parser),
62 xml_get_current_byte_index($parser));
65 function endElement($parser, $name) {
67 xml_get_current_line_number($parser),
68 xml_get_current_column_number($parser),
69 xml_get_current_byte_index($parser));
72 function characterData($parser, $data) {
H A Dbug26614_libxml_pre2_11.phpt58 function startElement($parser, $name, $attrs) {
60 xml_get_current_line_number($parser),
61 xml_get_current_column_number($parser),
62 xml_get_current_byte_index($parser));
65 function endElement($parser, $name) {
67 xml_get_current_line_number($parser),
68 xml_get_current_column_number($parser),
69 xml_get_current_byte_index($parser));
72 function characterData($parser, $data) {

Completed in 61 milliseconds

1234