Home
last modified time | relevance | path

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

1234

/PHP-8.2/ext/json/
H A Djson_parser.y36 if (parser->max_depth && parser->depth >= parser->max_depth) { \
92 if (parser->methods.object_start && FAILURE == parser->methods.object_start(parser)) {
100 if (parser->methods.object_end && FAILURE == parser->methods.object_end(parser, &$$)) {
121 parser->methods.object_create(parser, &$$);
130 parser->methods.object_create(parser, &$$);
148 if (parser->methods.array_start && FAILURE == parser->methods.array_start(parser)) {
156 if (parser->methods.array_end && FAILURE == parser->methods.array_end(parser, &$$)) {
177 parser->methods.array_create(parser, &$$);
186 parser->methods.array_create(parser, &$$);
187 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.2/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()
476 parser->parser->wellFormed = 0; in XML_ParserCreate_MM()
579 return parser->parser->errNo; in XML_GetErrorCode()
700 return parser->parser->input->line; in XML_GetCurrentLineNumber()
706 return parser->parser->input->col; in XML_GetCurrentColumnNumber()
750 if (parser->parser->myDoc) { in XML_ParserFree()
751 xmlFreeDoc(parser->parser->myDoc); in XML_ParserFree()
752 parser->parser->myDoc = NULL; in XML_ParserFree()
[all …]
H A Dxml.c335 if (parser->parser) { in xml_parser_free_obj()
336 XML_ParserFree(parser->parser); in xml_parser_free_obj()
627 xml_call_handler(parser, &parser->startElementHandler, parser->startElementPtr, 3, args, &retval); in _xml_startElementHandler()
698 xml_call_handler(parser, &parser->endElementHandler, parser->endElementPtr, 2, args, &retval); in _xml_endElementHandler()
725 efree(parser->ltags[parser->level-1]); in _xml_endElementHandler()
807 if (parser->level <= XML_MAXLEVEL && parser->level > 0 && (doprint || (! parser->skipwhite))) { in _xml_characterDataHandler()
809 _xml_add_to_info(parser,SKIP_TAGSTART(parser->ltags[parser->level-1])); in _xml_characterDataHandler()
848 if (!parser || Z_ISUNDEF(parser->defaultHandler)) { in _xml_defaultHandler()
856 xml_call_handler(parser, &parser->defaultHandler, parser->defaultPtr, 2, args, &retval); in _xml_defaultHandler()
1026 XML_SetUserData(parser->parser, parser); in php_xml_parser_create_impl()
[all …]
H A Dxml.stub.php141 function xml_set_object(XMLParser $parser, object $object): true {} argument
150 function xml_set_character_data_handler(XMLParser $parser, $handler): true {} argument
156 function xml_set_default_handler(XMLParser $parser, $handler): true {} argument
162 function xml_set_notation_decl_handler(XMLParser $parser, $handler): true {} argument
181 function xml_get_error_code(XMLParser $parser): int {} argument
186 function xml_get_current_line_number(XMLParser $parser): int {} argument
188 function xml_get_current_column_number(XMLParser $parser): int {} argument
190 function xml_get_current_byte_index(XMLParser $parser): int {} argument
192 function xml_parser_free(XMLParser $parser): bool {} argument
195 function xml_parser_set_option(XMLParser $parser, int $option, $value): bool {} argument
[all …]
/PHP-8.2/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.2/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 Dgh15868.phpt7 $parser = xml_parser_create();
8 xml_set_element_handler($parser,
9 function ($parser, $name, $attrs) {
11 }, function ($parser, $name) {
15 xml_parse_into_struct($parser, "<container/>", $values, $tags);
20 $parser = xml_parser_create();
21 xml_set_element_handler($parser,
22 function ($parser, $name, $attrs) {
23 }, function ($parser, $name) {
33 $parser = xml_parser_create();
[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_set_start_namespace_decl_handler_basic.inc10 $parser = xml_parser_create_ns();
11 xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
13 var_dump(xml_set_start_namespace_decl_handler( $parser, "Namespace_Start_Handler" ));
14 var_dump(xml_set_end_namespace_decl_handler( $parser, "Namespace_End_Handler" ));
16 xml_parse( $parser, $xml, true);
17 xml_parser_free( $parser );
21 function Namespace_Start_Handler( $parser, $prefix, $uri ) {
27 function Namespace_End_Handler($parser, $prefix) {
32 function DefaultHandler( $parser, $data ) {
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 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 Dbug26614.inc47 function startElement($parser, $name, $attrs) {
49 xml_get_current_line_number($parser),
50 xml_get_current_column_number($parser),
51 xml_get_current_byte_index($parser));
54 function endElement($parser, $name) {
56 xml_get_current_line_number($parser),
57 xml_get_current_column_number($parser),
58 xml_get_current_byte_index($parser));
61 function characterData($parser, $data) {
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 Dxml001.phpt2 XML parser test, function callbacks
7 XML_SAX_IMPL == 'libxml' && die('skip this test is not intended for libxml SAX parser');
35 function startElement($parser, $name, $attribs)
46 function endElement($parser, $name)
51 function characterData($parser, $data)
56 function PIHandler($parser, $target, $data)
61 function defaultHandler($parser, $data)
70 function externalEntityRefHandler($parser, $openEntityNames, $base, $systemId, $publicId)
H A Dxml003.phpt2 XML parser test, xml_set_object callbacks
7 XML_SAX_IMPL == 'libxml' && die('skip this test is not intended for libxml SAX parser');
15 function startElement($parser, $name, $attribs)
25 function endElement($parser, $name)
29 function characterData($parser, $data)
33 function PIHandler($parser, $target, $data)
37 function defaultHandler($parser, $data)
45 function externalEntityRefHandler($parser, $openEntityNames, $base, $systemId, $publicId)

Completed in 33 milliseconds

1234