/PHP-7.1/ext/xml/tests/ |
H A D | bug32001b.phpt | 28 function start_element($parser, $name, $attrs) { 33 function end_element($parser, $name) { 56 $parser = xml_parser_create(NULL); 57 xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); 58 xml_set_element_handler($parser, "start_element", "end_element"); 59 xml_set_object($parser, $this); 62 $success = @xml_parse($parser, $data, true); 66 $success = @xml_parse($parser, substr($data, $offset, $this->chunk_size), false); 72 $success = @xml_parse($parser, "", true); 84 echo "[Error] ", xml_error_string(xml_get_error_code($parser)), "\n";
|
H A D | bug35447.phpt | 23 $parser = xml_parser_create_ns('UTF-8'); 24 xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0); 25 $result = xml_parse_into_struct($parser, $data, $vals, $index); 26 xml_parser_free($parser);
|
H A D | bug30875.phpt | 17 $parser = xml_parser_create(); 18 xml_parse_into_struct($parser, $xml, $vals); 19 xml_parser_free($parser);
|
H A D | xml_parser_set_option_variation3.phpt | 11 /* Prototype : proto int xml_parser_set_option(resource parser, int option, mixed value) 12 * Description: Set options in an XML parser 27 $parser = xml_parser_create(); 94 var_dump( xml_parser_set_option($parser, $option, $value) ); 98 xml_parser_free($parser);
|
H A D | bug72714.phpt | 9 function startElement($parser, $name, $attribs) { 13 function endElement($parser, $name) {}
|
H A D | xml_set_object_error.phpt | 11 /* Prototype : proto int xml_set_object(resource parser, object &obj) 23 //WARNING: Unable to initialise parser of type resource 32 //WARNING: Unable to initialise parser of type resource
|
H A D | bug32001.phpt | 27 function start_element($parser, $name, $attrs) { 32 function end_element($parser, $name) { 100 $parser = xml_parser_create(NULL); 101 xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); 102 xml_set_element_handler($parser, "start_element", "end_element"); 103 xml_set_object($parser, $this); 106 $success = @xml_parse($parser, $data, true); 110 $success = @xml_parse($parser, substr($data, $offset, $this->chunk_size), false); 116 $success = @xml_parse($parser, "", true); 128 echo "[Error] ", xml_error_string(xml_get_error_code($parser)), "\n";
|
H A D | xml_parser_free_error.phpt | 11 /* Prototype : proto int xml_parser_free(resource parser) 12 * Description: Free an XML parser
|
H A D | xml_get_error_code_error.phpt | 11 /* Prototype : proto int xml_get_error_code(resource parser) 12 * Description: Get XML parser error code
|
H A D | xml_get_current_byte_index_error.phpt | 11 /* Prototype : proto int xml_get_current_byte_index(resource parser) 12 * Description: Get current byte index for an XML parser
|
H A D | xml_get_current_column_number_error.phpt | 11 /* Prototype : proto int xml_get_current_column_number(resource parser) 12 * Description: Get current column number for an XML parser
|
H A D | xml_get_current_line_number_error.phpt | 11 /* Prototype : proto int xml_get_current_line_number(resource parser) 12 * Description: Get current line number for an XML parser
|
H A D | xml_parser_set_option_variation2.phpt | 12 /* Prototype : proto int xml_parser_set_option(resource parser, int option, mixed value) 13 * Description: Set options in an XML parser 27 $parser = xml_parser_create(); 86 var_dump( xml_parser_set_option($parser, $value, 1) ); 89 xml_parser_free($parser);
|
H A D | bug50576.phpt | 28 function startElement($parser, $name, $attribs) { echo $name . PHP_EOL; } 29 function endElement($parser, $name) { echo $name . PHP_EOL; }
|
H A D | xml_parser_set_option_error.phpt | 11 /* Prototype : proto int xml_parser_set_option(resource parser, int option, mixed value) 12 * Description: Set options in an XML parser
|
H A D | xml_parser_get_option_error.phpt | 11 /* Prototype : proto int xml_parser_get_option(resource parser, int option) 12 * Description: Get options from an XML parser
|
H A D | xml_parser_get_option_variation2.phpt | 11 /* Prototype : proto int xml_parser_get_option(resource parser, int option) 12 * Description: Get options from an XML parser 26 $parser = xml_parser_create(); 90 var_dump( xml_parser_get_option($parser, $value) ); 94 xml_parser_free($parser);
|
H A D | bug65236.phpt | 2 Bug #65236 (heap corruption in xml parser)
|
/PHP-7.1/sapi/cli/ |
H A D | php_http_parser.h | 224 void php_http_parser_init(php_http_parser *parser, enum php_http_parser_type type); 227 size_t php_http_parser_execute(php_http_parser *parser, 239 int php_http_should_keep_alive(php_http_parser *parser);
|
/PHP-7.1/ext/xmlrpc/libxmlrpc/ |
H A D | xml_element.c | 698 XML_Parser parser; in xml_elem_parse_buf() local 701 parser = XML_ParserCreate(NULL); in xml_elem_parse_buf() 708 …XML_SetElementHandler(parser, (XML_StartElementHandler)_xmlrpc_startElement, (XML_EndElementHandle… in xml_elem_parse_buf() 709 XML_SetCharacterDataHandler(parser, (XML_CharacterDataHandler)_xmlrpc_charHandler); in xml_elem_parse_buf() 712 XML_SetUserData(parser, (void*)&mydata); in xml_elem_parse_buf() 719 if(XML_Parse(parser, in_buf, len, 1) == 0) { in xml_elem_parse_buf() 720 enum XML_Error err_code = XML_GetErrorCode(parser); in xml_elem_parse_buf() 721 int line_num = XML_GetCurrentLineNumber(parser); in xml_elem_parse_buf() 722 int col_num = XML_GetCurrentColumnNumber(parser); in xml_elem_parse_buf() 723 long byte_idx = XML_GetCurrentByteIndex(parser); in xml_elem_parse_buf() [all …]
|
/PHP-7.1/ext/json/ |
H A D | json.c | 205 php_json_parser parser; in php_json_decode_ex() local 207 php_json_parser_init(&parser, return_value, str, str_len, (int)options, (int)depth); in php_json_decode_ex() 209 if (php_json_yyparse(&parser)) { in php_json_decode_ex() 210 JSON_G(error_code) = php_json_parser_error_code(&parser); in php_json_decode_ex()
|
H A D | json_parser.tab.h | 93 int php_json_yyparse (php_json_parser *parser);
|
/PHP-7.1/ext/standard/tests/general_functions/ |
H A D | bug70947.phpt | 2 Bug #70947 (INI parser segfault with INI_SCANNER_TYPED)
|
/PHP-7.1/ext/soap/tests/schema/ |
H A D | skipif.inc | 3 /* xml parser is required by test_schema.inc */
|
/PHP-7.1/ext/phar/tests/ |
H A D | bug71354.phpt | 2 Phar: bug #71354: Heap corruption in tar/zip/phar parser.
|