Skip to content

Commit 41774bc

Browse files
committed
Fix more minor mistakes in the proto comments
1 parent ea5c66e commit 41774bc

File tree

12 files changed

+54
-54
lines changed

12 files changed

+54
-54
lines changed

Zend/zend_builtin_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2115,7 +2115,7 @@ static int add_constant_info(zval *item, void *arg) /* {{{ */
21152115
}
21162116
/* }}} */
21172117

2118-
/* {{{ proto array get_loaded_extensions([bool zend_extensions]) U
2118+
/* {{{ proto array get_loaded_extensions([bool zend_extensions])
21192119
Return an array containing names of loaded extensions */
21202120
ZEND_FUNCTION(get_loaded_extensions)
21212121
{

Zend/zend_closures.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ZEND_METHOD(Closure, __invoke) /* {{{ */
6969
}
7070
/* }}} */
7171

72-
/* {{{ proto mixed Closure::call(object $to [, mixed $parameter] [, mixed $...] )
72+
/* {{{ proto mixed Closure::call(object to [, mixed parameter] [, mixed ...] )
7373
Call closure, binding to a given object with its class as the scope */
7474
ZEND_METHOD(Closure, call)
7575
{
@@ -143,7 +143,7 @@ ZEND_METHOD(Closure, call)
143143
}
144144
/* }}} */
145145

146-
/* {{{ proto Closure Closure::bind(Closure $old, object $to [, mixed $scope = "static" ] )
146+
/* {{{ proto Closure Closure::bind(callable old, object to [, mixed scope])
147147
Create a closure from another one and bind to another object and scope */
148148
ZEND_METHOD(Closure, bind)
149149
{

Zend/zend_generators.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ ZEND_METHOD(Generator, next)
848848
}
849849
/* }}} */
850850

851-
/* {{{ proto mixed Generator::send(mixed $value)
851+
/* {{{ proto mixed Generator::send(mixed value)
852852
* Sends a value to the generator */
853853
ZEND_METHOD(Generator, send)
854854
{
@@ -887,7 +887,7 @@ ZEND_METHOD(Generator, send)
887887
}
888888
/* }}} */
889889

890-
/* {{{ proto mixed Generator::throw(Exception $exception)
890+
/* {{{ proto mixed Generator::throw(Exception exception)
891891
* Throws an exception into the generator */
892892
ZEND_METHOD(Generator, throw)
893893
{

ext/dom/attr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const zend_function_entry php_dom_attr_class_functions[] = {
5252
PHP_FE_END
5353
};
5454

55-
/* {{{ proto void DOMAttr::__construct(string name, [string value]); */
55+
/* {{{ proto void DOMAttr::__construct(string name, [string value]) */
5656
PHP_METHOD(domattr, __construct)
5757
{
5858
zval *id = getThis();
@@ -220,7 +220,7 @@ int dom_attr_schema_type_info_read(dom_object *obj, zval *retval)
220220

221221
/* }}} */
222222

223-
/* {{{ proto boolean dom_attr_is_id();
223+
/* {{{ proto boolean dom_attr_is_id()
224224
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Attr-isId
225225
Since: DOM Level 3
226226
*/

ext/dom/document.c

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ int dom_document_config_read(dom_object *obj, zval *retval)
687687

688688
/* }}} */
689689

690-
/* {{{ proto DOMElement dom_document_create_element(string tagName [, string value]);
690+
/* {{{ proto DOMElement dom_document_create_element(string tagName [, string value])
691691
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-2141741547
692692
Since:
693693
*/
@@ -721,7 +721,7 @@ PHP_FUNCTION(dom_document_create_element)
721721
}
722722
/* }}} end dom_document_create_element */
723723

724-
/* {{{ proto DOMDocumentFragment dom_document_create_document_fragment();
724+
/* {{{ proto DOMDocumentFragment dom_document_create_document_fragment()
725725
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-35CB04B5
726726
Since:
727727
*/
@@ -748,7 +748,7 @@ PHP_FUNCTION(dom_document_create_document_fragment)
748748
}
749749
/* }}} end dom_document_create_document_fragment */
750750

751-
/* {{{ proto DOMText dom_document_create_text_node(string data);
751+
/* {{{ proto DOMText dom_document_create_text_node(string data)
752752
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1975348127
753753
Since:
754754
*/
@@ -777,7 +777,7 @@ PHP_FUNCTION(dom_document_create_text_node)
777777
}
778778
/* }}} end dom_document_create_text_node */
779779

780-
/* {{{ proto DOMComment dom_document_create_comment(string data);
780+
/* {{{ proto DOMComment dom_document_create_comment(string data)
781781
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1334481328
782782
Since:
783783
*/
@@ -806,7 +806,7 @@ PHP_FUNCTION(dom_document_create_comment)
806806
}
807807
/* }}} end dom_document_create_comment */
808808

809-
/* {{{ proto DOMCdataSection dom_document_create_cdatasection(string data);
809+
/* {{{ proto DOMCdataSection dom_document_create_cdatasection(string data)
810810
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-D26C0AF8
811811
Since:
812812
*/
@@ -835,7 +835,7 @@ PHP_FUNCTION(dom_document_create_cdatasection)
835835
}
836836
/* }}} end dom_document_create_cdatasection */
837837

838-
/* {{{ proto DOMProcessingInstruction dom_document_create_processing_instruction(string target, string data);
838+
/* {{{ proto DOMProcessingInstruction dom_document_create_processing_instruction(string target, string data)
839839
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-135944439
840840
Since:
841841
*/
@@ -871,7 +871,7 @@ PHP_FUNCTION(dom_document_create_processing_instruction)
871871
}
872872
/* }}} end dom_document_create_processing_instruction */
873873

874-
/* {{{ proto DOMAttr dom_document_create_attribute(string name);
874+
/* {{{ proto DOMAttr dom_document_create_attribute(string name)
875875
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1084891198
876876
Since:
877877
*/
@@ -906,7 +906,7 @@ PHP_FUNCTION(dom_document_create_attribute)
906906
}
907907
/* }}} end dom_document_create_attribute */
908908

909-
/* {{{ proto DOMEntityReference dom_document_create_entity_reference(string name);
909+
/* {{{ proto DOMEntityReference dom_document_create_entity_reference(string name)
910910
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-392B75AE
911911
Since:
912912
*/
@@ -940,7 +940,7 @@ PHP_FUNCTION(dom_document_create_entity_reference)
940940
}
941941
/* }}} end dom_document_create_entity_reference */
942942

943-
/* {{{ proto DOMNodeList dom_document_get_elements_by_tag_name(string tagname);
943+
/* {{{ proto DOMNodeList dom_document_get_elements_by_tag_name(string tagname)
944944
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-A6C9094
945945
Since:
946946
*/
@@ -966,7 +966,7 @@ PHP_FUNCTION(dom_document_get_elements_by_tag_name)
966966
}
967967
/* }}} end dom_document_get_elements_by_tag_name */
968968

969-
/* {{{ proto DOMNode dom_document_import_node(DOMNode importedNode, boolean deep);
969+
/* {{{ proto DOMNode dom_document_import_node(DOMNode importedNode, boolean deep)
970970
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Core-Document-importNode
971971
Since: DOM Level 2
972972
*/
@@ -1021,7 +1021,7 @@ PHP_FUNCTION(dom_document_import_node)
10211021
}
10221022
/* }}} end dom_document_import_node */
10231023

1024-
/* {{{ proto DOMElement dom_document_create_element_ns(string namespaceURI, string qualifiedName [,string value]);
1024+
/* {{{ proto DOMElement dom_document_create_element_ns(string namespaceURI, string qualifiedName [,string value])
10251025
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-DocCrElNS
10261026
Since: DOM Level 2
10271027
*/
@@ -1085,7 +1085,7 @@ PHP_FUNCTION(dom_document_create_element_ns)
10851085
}
10861086
/* }}} end dom_document_create_element_ns */
10871087

1088-
/* {{{ proto DOMAttr dom_document_create_attribute_ns(string namespaceURI, string qualifiedName);
1088+
/* {{{ proto DOMAttr dom_document_create_attribute_ns(string namespaceURI, string qualifiedName)
10891089
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-DocCrAttrNS
10901090
Since: DOM Level 2
10911091
*/
@@ -1151,7 +1151,7 @@ PHP_FUNCTION(dom_document_create_attribute_ns)
11511151
}
11521152
/* }}} end dom_document_create_attribute_ns */
11531153

1154-
/* {{{ proto DOMNodeList dom_document_get_elements_by_tag_name_ns(string namespaceURI, string localName);
1154+
/* {{{ proto DOMNodeList dom_document_get_elements_by_tag_name_ns(string namespaceURI, string localName)
11551155
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-getElBTNNS
11561156
Since: DOM Level 2
11571157
*/
@@ -1178,7 +1178,7 @@ PHP_FUNCTION(dom_document_get_elements_by_tag_name_ns)
11781178
}
11791179
/* }}} end dom_document_get_elements_by_tag_name_ns */
11801180

1181-
/* {{{ proto DOMElement dom_document_get_element_by_id(string elementId);
1181+
/* {{{ proto DOMElement dom_document_get_element_by_id(string elementId)
11821182
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-getElBId
11831183
Since: DOM Level 2
11841184
*/
@@ -1209,7 +1209,7 @@ PHP_FUNCTION(dom_document_get_element_by_id)
12091209
}
12101210
/* }}} end dom_document_get_element_by_id */
12111211

1212-
/* {{{ proto DOMNode dom_document_adopt_node(DOMNode source);
1212+
/* {{{ proto DOMNode dom_document_adopt_node(DOMNode source)
12131213
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Document3-adoptNode
12141214
Since: DOM Level 3
12151215
*/
@@ -1219,7 +1219,7 @@ PHP_FUNCTION(dom_document_adopt_node)
12191219
}
12201220
/* }}} end dom_document_adopt_node */
12211221

1222-
/* {{{ proto void dom_document_normalize_document();
1222+
/* {{{ proto void dom_document_normalize_document()
12231223
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Document3-normalizeDocument
12241224
Since: DOM Level 3
12251225
*/
@@ -1239,7 +1239,7 @@ PHP_FUNCTION(dom_document_normalize_document)
12391239
}
12401240
/* }}} end dom_document_normalize_document */
12411241

1242-
/* {{{ proto DOMNode dom_document_rename_node(node n, string namespaceURI, string qualifiedName);
1242+
/* {{{ proto DOMNode dom_document_rename_node(node n, string namespaceURI, string qualifiedName)
12431243
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Document3-renameNode
12441244
Since: DOM Level 3
12451245
*/
@@ -1528,7 +1528,7 @@ static void dom_parse_document(INTERNAL_FUNCTION_PARAMETERS, int mode) {
15281528
}
15291529
/* }}} end dom_parser_document */
15301530

1531-
/* {{{ proto DOMNode dom_document_load(string source [, int options]);
1531+
/* {{{ proto DOMNode dom_document_load(string source [, int options])
15321532
URL: http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-DocumentLS-load
15331533
Since: DOM Level 3
15341534
*/
@@ -1538,7 +1538,7 @@ PHP_METHOD(domdocument, load)
15381538
}
15391539
/* }}} end dom_document_load */
15401540

1541-
/* {{{ proto DOMNode dom_document_loadxml(string source [, int options]);
1541+
/* {{{ proto DOMNode dom_document_loadxml(string source [, int options])
15421542
URL: http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-DocumentLS-loadXML
15431543
Since: DOM Level 3
15441544
*/
@@ -1548,7 +1548,7 @@ PHP_METHOD(domdocument, loadXML)
15481548
}
15491549
/* }}} end dom_document_loadxml */
15501550

1551-
/* {{{ proto int dom_document_save(string file);
1551+
/* {{{ proto int dom_document_save(string file)
15521552
Convenience method to save to file
15531553
*/
15541554
PHP_FUNCTION(dom_document_save)
@@ -1592,7 +1592,7 @@ PHP_FUNCTION(dom_document_save)
15921592
}
15931593
/* }}} end dom_document_save */
15941594

1595-
/* {{{ proto string dom_document_savexml([node n]);
1595+
/* {{{ proto string dom_document_savexml([node n])
15961596
URL: http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-DocumentLS-saveXML
15971597
Since: DOM Level 3
15981598
*/
@@ -1744,7 +1744,7 @@ PHP_FUNCTION(dom_document_xinclude)
17441744
}
17451745
/* }}} */
17461746

1747-
/* {{{ proto boolean dom_document_validate();
1747+
/* {{{ proto boolean dom_document_validate()
17481748
Since: DOM extended
17491749
*/
17501750
PHP_FUNCTION(dom_document_validate)
@@ -2062,7 +2062,7 @@ static void dom_load_html(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{ */
20622062
}
20632063
/* }}} */
20642064

2065-
/* {{{ proto DOMNode dom_document_load_html_file(string source);
2065+
/* {{{ proto DOMNode dom_document_load_html_file(string source)
20662066
Since: DOM extended
20672067
*/
20682068
PHP_METHOD(domdocument, loadHTMLFile)
@@ -2071,7 +2071,7 @@ PHP_METHOD(domdocument, loadHTMLFile)
20712071
}
20722072
/* }}} end dom_document_load_html_file */
20732073

2074-
/* {{{ proto DOMNode dom_document_load_html(string source);
2074+
/* {{{ proto DOMNode dom_document_load_html(string source)
20752075
Since: DOM extended
20762076
*/
20772077
PHP_METHOD(domdocument, loadHTML)
@@ -2080,7 +2080,7 @@ PHP_METHOD(domdocument, loadHTML)
20802080
}
20812081
/* }}} end dom_document_load_html */
20822082

2083-
/* {{{ proto int dom_document_save_html_file(string file);
2083+
/* {{{ proto int dom_document_save_html_file(string file)
20842084
Convenience method to save to file as html
20852085
*/
20862086
PHP_FUNCTION(dom_document_save_html_file)
@@ -2119,7 +2119,7 @@ PHP_FUNCTION(dom_document_save_html_file)
21192119
}
21202120
/* }}} end dom_document_save_html_file */
21212121

2122-
/* {{{ proto string dom_document_save_html();
2122+
/* {{{ proto string dom_document_save_html()
21232123
Convenience method to output as html
21242124
*/
21252125
PHP_FUNCTION(dom_document_save_html)
@@ -2206,7 +2206,7 @@ PHP_FUNCTION(dom_document_save_html)
22062206

22072207
#endif /* defined(LIBXML_HTML_ENABLED) */
22082208

2209-
/* {{{ proto boolean DOMDocument::registerNodeClass(string baseclass, string extendedclass);
2209+
/* {{{ proto boolean DOMDocument::registerNodeClass(string baseclass, string extendedclass)
22102210
Register extended class used to create base node type */
22112211
PHP_METHOD(domdocument, registerNodeClass)
22122212
{

ext/dom/documentfragment.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const zend_function_entry php_dom_documentfragment_class_functions[] = {
4949
PHP_FE_END
5050
};
5151

52-
/* {{{ proto void DOMDocumentFragment::__construct(); */
52+
/* {{{ proto void DOMDocumentFragment::__construct() */
5353
PHP_METHOD(domdocumentfragment, __construct)
5454
{
5555

@@ -112,7 +112,7 @@ static void php_dom_xmlSetTreeDoc(xmlNodePtr tree, xmlDocPtr doc) /* {{{ */
112112
}
113113
/* }}} */
114114

115-
/* {{{ proto void DOMDocumentFragment::appendXML(string data); */
115+
/* {{{ proto void DOMDocumentFragment::appendXML(string data) */
116116
PHP_METHOD(domdocumentfragment, appendXML) {
117117
zval *id;
118118
xmlNode *nodep;

ext/dom/element.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const zend_function_entry php_dom_element_class_functions[] = { /* {{{ */
150150
};
151151
/* }}} */
152152

153-
/* {{{ proto void DOMElement::__construct(string name, [string value], [string uri]); */
153+
/* {{{ proto void DOMElement::__construct(string name, [string value], [string uri]) */
154154
PHP_METHOD(domelement, __construct)
155155
{
156156

ext/dom/entityreference.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const zend_function_entry php_dom_entityreference_class_functions[] = {
4545
PHP_FE_END
4646
};
4747

48-
/* {{{ proto void DOMEntityReference::__construct(string name); */
48+
/* {{{ proto void DOMEntityReference::__construct(string name) */
4949
PHP_METHOD(domentityreference, __construct)
5050
{
5151
zval *id = getThis();

ext/dom/text.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ int dom_text_whole_text_read(dom_object *obj, zval *retval)
133133

134134
/* }}} */
135135

136-
/* {{{ proto DOMText dom_text_split_text(int offset);
136+
/* {{{ proto DOMText dom_text_split_text(int offset)
137137
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-38853C1D
138138
Since:
139139
*/
@@ -194,7 +194,7 @@ PHP_FUNCTION(dom_text_split_text)
194194
}
195195
/* }}} end dom_text_split_text */
196196

197-
/* {{{ proto boolean dom_text_is_whitespace_in_element_content();
197+
/* {{{ proto boolean dom_text_is_whitespace_in_element_content()
198198
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Text3-isWhitespaceInElementContent
199199
Since: DOM Level 3
200200
*/
@@ -217,7 +217,7 @@ PHP_FUNCTION(dom_text_is_whitespace_in_element_content)
217217
}
218218
/* }}} end dom_text_is_whitespace_in_element_content */
219219

220-
/* {{{ proto DOMText dom_text_replace_whole_text(string content);
220+
/* {{{ proto DOMText dom_text_replace_whole_text(string content)
221221
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Text3-replaceWholeText
222222
Since: DOM Level 3
223223
*/

ext/dom/xpath.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ int dom_xpath_document_read(dom_object *obj, zval *retval)
309309
}
310310
/* }}} */
311311

312-
/* {{{ proto boolean dom_xpath_register_ns(string prefix, string uri); */
312+
/* {{{ proto boolean dom_xpath_register_ns(string prefix, string uri) */
313313
PHP_FUNCTION(dom_xpath_register_ns)
314314
{
315315
zval *id;
@@ -490,14 +490,14 @@ static void php_xpath_eval(INTERNAL_FUNCTION_PARAMETERS, int type) /* {{{ */
490490
}
491491
/* }}} */
492492

493-
/* {{{ proto DOMNodeList dom_xpath_query(string expr [,DOMNode context [, boolean registerNodeNS]]); */
493+
/* {{{ proto DOMNodeList dom_xpath_query(string expr [,DOMNode context [, boolean registerNodeNS]]) */
494494
PHP_FUNCTION(dom_xpath_query)
495495
{
496496
php_xpath_eval(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_DOM_XPATH_QUERY);
497497
}
498498
/* }}} end dom_xpath_query */
499499

500-
/* {{{ proto mixed dom_xpath_evaluate(string expr [,DOMNode context [, boolean registerNodeNS]]); */
500+
/* {{{ proto mixed dom_xpath_evaluate(string expr [,DOMNode context [, boolean registerNodeNS]]) */
501501
PHP_FUNCTION(dom_xpath_evaluate)
502502
{
503503
php_xpath_eval(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_DOM_XPATH_EVALUATE);

0 commit comments

Comments
 (0)