Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated signatures for "XML parser" #3691

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions resources/functionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -13315,7 +13315,7 @@
'xhprof_enable' => ['void', 'flags='=>'int', 'options='=>'array'],
'xhprof_sample_disable' => ['array<string,string>'],
'xhprof_sample_enable' => ['void'],
'xml_error_string' => ['string', 'code'=>'int'],
'xml_error_string' => ['string|null', 'code'=>'int'],
'xml_get_current_byte_index' => ['int', 'parser'=>'resource'],
'xml_get_current_column_number' => ['int', 'parser'=>'resource'],
'xml_get_current_line_number' => ['int', 'parser'=>'resource'],
Expand All @@ -13325,18 +13325,18 @@
'xml_parser_create' => ['resource', 'encoding='=>'string'],
'xml_parser_create_ns' => ['resource', 'encoding='=>'string', 'sep='=>'string'],
'xml_parser_free' => ['bool', 'parser'=>'resource'],
'xml_parser_get_option' => ['mixed', 'parser'=>'resource', 'option'=>'int'],
'xml_parser_set_option' => ['bool', 'parser'=>'resource', 'option'=>'int', 'value'=>'mixed'],
'xml_set_character_data_handler' => ['bool', 'parser'=>'resource', 'hdl'=>'callable'],
'xml_set_default_handler' => ['bool', 'parser'=>'resource', 'hdl'=>'callable'],
'xml_set_element_handler' => ['bool', 'parser'=>'resource', 'shdl'=>'callable', 'ehdl'=>'callable'],
'xml_set_end_namespace_decl_handler' => ['bool', 'parser'=>'resource', 'hdl'=>'callable'],
'xml_set_external_entity_ref_handler' => ['bool', 'parser'=>'resource', 'hdl'=>'callable'],
'xml_set_notation_decl_handler' => ['bool', 'parser'=>'resource', 'hdl'=>'callable'],
'xml_set_object' => ['bool', 'parser'=>'resource', 'obj'=>'object'],
'xml_set_processing_instruction_handler' => ['bool', 'parser'=>'resource', 'hdl'=>'callable'],
'xml_set_start_namespace_decl_handler' => ['bool', 'parser'=>'resource', 'hdl'=>'callable'],
'xml_set_unparsed_entity_decl_handler' => ['bool', 'parser'=>'resource', 'hdl'=>'callable'],
'xml_parser_get_option' => ['string|int|false', 'parser'=>'resource', 'option'=>'int'],
'xml_parser_set_option' => ['bool', 'parser'=>'resource', 'option'=>'int', 'value'=>'string|int'],
'xml_set_character_data_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xml_set_default_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xml_set_element_handler' => ['true', 'parser'=>'resource', 'shdl'=>'callable|string', 'ehdl'=>'callable|string'],
'xml_set_end_namespace_decl_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xml_set_external_entity_ref_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xml_set_notation_decl_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xml_set_object' => ['true', 'parser'=>'resource', 'obj'=>'object'],
'xml_set_processing_instruction_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xml_set_start_namespace_decl_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xml_set_unparsed_entity_decl_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'XMLDiff\Base::__construct' => ['void', 'nsname'=>'string'],
'XMLDiff\Base::diff' => ['mixed', 'from'=>'mixed', 'to'=>'mixed'],
'XMLDiff\Base::merge' => ['mixed', 'src'=>'mixed', 'diff'=>'mixed'],
Expand Down
44 changes: 38 additions & 6 deletions resources/functionMap_php80delta.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,27 @@
'substr' => ['string', 'string'=>'string', 'start'=>'int', 'length='=>'int'],
'round' => ['float', 'number'=>'float', 'precision='=>'int', 'mode='=>'1|2|3|4'],
'version_compare' => ['int|bool', 'version1'=>'string', 'version2'=>'string', 'operator='=>'string|null'],
'xml_parser_create' => ['XMLParser', 'encoding='=>'string'],
'xml_parser_create_ns' => ['XMLParser', 'encoding='=>'string', 'sep='=>'string'],
'xml_get_current_byte_index' => ['int', 'parser'=>'XMLParser'],
'xml_get_current_column_number' => ['int', 'parser'=>'XMLParser'],
'xml_get_current_line_number' => ['int', 'parser'=>'XMLParser'],
'xml_get_error_code' => ['int', 'parser'=>'XMLParser'],
'xml_parse' => ['int', 'parser'=>'XMLParser', 'data'=>'string', 'isfinal='=>'bool'],
'xml_parse_into_struct' => ['int', 'parser'=>'XMLParser', 'data'=>'string', '&w_values'=>'array', '&w_index='=>'array'],
'xml_parser_create' => ['XMLParser', 'encoding='=>'string|null'],
'xml_parser_create_ns' => ['XMLParser|false', 'encoding='=>'string|null', 'sep='=>'string'],
'xml_parser_free' => ['bool', 'parser'=>'XMLParser'],
'xml_parser_get_option' => ['mixed|false', 'parser'=>'XMLParser', 'option'=>'int'],
'xml_parser_set_option' => ['bool', 'parser'=>'XMLParser', 'option'=>'int', 'value'=>'mixed'],
'xml_parser_get_option' => ['string|int', 'parser'=>'XMLParser', 'option'=>'int'],
'xml_parser_set_option' => ['bool', 'parser'=>'XMLParser', 'option'=>'int', 'value'=>'string|int'],
'xml_set_character_data_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_default_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_element_handler' => ['true', 'parser'=>'XMLParser', 'shdl'=>'callable|string', 'ehdl'=>'callable|string'],
'xml_set_end_namespace_decl_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_external_entity_ref_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_notation_decl_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_object' => ['true', 'parser'=>'XMLParser', 'obj'=>'object'],
'xml_set_processing_instruction_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_start_namespace_decl_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_unparsed_entity_decl_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xmlwriter_end_attribute' => ['bool', 'xmlwriter'=>'XMLWriter'],
'xmlwriter_end_cdata' => ['bool', 'xmlwriter'=>'XMLWriter'],
'xmlwriter_end_comment' => ['bool', 'xmlwriter'=>'XMLWriter'],
Expand Down Expand Up @@ -257,11 +273,27 @@
'strstr' => ['string|false', 'haystack'=>'string', 'needle'=>'string|int', 'before_needle='=>'bool'],
'substr' => ['__benevolent<string|false>', 'string'=>'string', 'start'=>'int', 'length='=>'int'],
'version_compare' => ['int|bool', 'version1'=>'string', 'version2'=>'string', 'operator='=>'string|null'],
'xml_get_current_byte_index' => ['int', 'parser'=>'resource'],
'xml_get_current_column_number' => ['int', 'parser'=>'resource'],
'xml_get_current_line_number' => ['int', 'parser'=>'resource'],
'xml_get_error_code' => ['int', 'parser'=>'resource'],
'xml_parse' => ['int', 'parser'=>'resource', 'data'=>'string', 'isfinal='=>'bool'],
'xml_parse_into_struct' => ['int', 'parser'=>'resource', 'data'=>'string', '&w_values'=>'array', '&w_index='=>'array'],
'xml_parser_create' => ['resource', 'encoding='=>'string'],
'xml_parser_create_ns' => ['resource', 'encoding='=>'string', 'sep='=>'string'],
'xml_parser_free' => ['bool', 'parser'=>'resource'],
'xml_parser_get_option' => ['mixed|false', 'parser'=>'resource', 'option'=>'int'],
'xml_parser_set_option' => ['bool', 'parser'=>'resource', 'option'=>'int', 'value'=>'mixed'],
'xml_parser_get_option' => ['string|int|false', 'parser'=>'resource', 'option'=>'int'],
'xml_parser_set_option' => ['bool', 'parser'=>'resource', 'option'=>'int', 'value'=>'string|int'],
'xml_set_character_data_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xml_set_default_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xml_set_element_handler' => ['true', 'parser'=>'resource', 'shdl'=>'callable|string', 'ehdl'=>'callable|string'],
'xml_set_end_namespace_decl_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xml_set_external_entity_ref_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xml_set_notation_decl_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xml_set_object' => ['true', 'parser'=>'resource', 'obj'=>'object'],
'xml_set_processing_instruction_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xml_set_start_namespace_decl_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xml_set_unparsed_entity_decl_handler' => ['true', 'parser'=>'resource', 'hdl'=>'callable|string'],
'xmlwriter_end_attribute' => ['bool', 'xmlwriter'=>'resource'],
'xmlwriter_end_cdata' => ['bool', 'xmlwriter'=>'resource'],
'xmlwriter_end_comment' => ['bool', 'xmlwriter'=>'resource'],
Expand Down
5 changes: 4 additions & 1 deletion resources/functionMap_php83delta.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
'str_increment' => ['non-falsy-string', 'string'=>'non-empty-string'],
'gc_status' => ['array{running:bool,protected:bool,full:bool,runs:int,collected:int,threshold:int,buffer_size:int,roots:int,application_time:float,collector_time:float,destructor_time:float,free_time:float}'],
'stream_get_meta_data' => ['array{timed_out:bool,blocked:bool,eof:bool,unread_bytes:int,stream_type:string,wrapper_type:string,wrapper_data:mixed,mode:string,seekable:bool,uri:string,mediatype?:string,base64?:bool}', 'fp'=>'resource'],
'xml_parser_get_option' => ['string|int|bool', 'parser'=>'resource', 'option'=>'int'],
'xml_parser_set_option' => ['bool', 'parser'=>'XMLParser', 'option'=>'int', 'value'=>'string|int|bool'],
],
'old' => [

'xml_parser_get_option' => ['string|int', 'parser'=>'resource', 'option'=>'int'],
'xml_parser_set_option' => ['bool', 'parser'=>'XMLParser', 'option'=>'int', 'value'=>'string|int'],
]
];
19 changes: 18 additions & 1 deletion resources/functionMap_php84delta.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,25 @@
'http_clear_last_response_headers' => ['void'],
'mb_lcfirst' => ['string', 'string'=>'string', 'encoding='=>'string'],
'mb_ucfirst' => ['string', 'string'=>'string', 'encoding='=>'string'],
'xml_set_character_data_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string|null'],
'xml_set_default_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string|null'],
'xml_set_element_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string|null'],
'xml_set_end_namespace_decl_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string|null'],
'xml_set_external_entity_ref_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string|null'],
'xml_set_notation_decl_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string|null'],
'xml_set_processing_instruction_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string|null'],
'xml_set_start_namespace_decl_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string|null'],
'xml_set_unparsed_entity_decl_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string|null'],
],
'old' => [

'xml_set_character_data_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_default_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_element_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_end_namespace_decl_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_external_entity_ref_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_notation_decl_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_processing_instruction_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_start_namespace_decl_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
'xml_set_start_namespace_decl_handler' => ['true', 'parser'=>'XMLParser', 'hdl'=>'callable|string'],
]
];
Loading