Skip to content

Commit fd57587

Browse files
author
Rob Richards
committed
changes to php_dom.h for last commit
replaced removed closing tags - doh
1 parent 5630dd0 commit fd57587

File tree

4 files changed

+86
-3
lines changed

4 files changed

+86
-3
lines changed

ext/dom/document.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,17 @@ zend_function_entry php_dom_document_class_functions[] = {
8585
{NULL, NULL, NULL}
8686
};
8787

88+
/* {{{ void add_domdocument_properties(zval *id) */
8889
void add_domdocument_properties(zval *id TSRMLS_DC) {
8990
add_property_bool(id, "formatOutput", 0);
9091
add_property_bool(id, "validateOnParse", 0);
9192
add_property_bool(id, "resolveExternals", 0);
9293
add_property_bool(id, "preserveWhiteSpace", 1);
9394
add_property_bool(id, "substituteEntities", 0);
9495
}
96+
/* }}} end add_domdocument_properties */
9597

98+
/* {{{ static int dom_document_get_property_int(zval *id, char *property TSRMLS_DC) */
9699
static int dom_document_get_property_int(zval *id, char *property TSRMLS_DC) {
97100
zval *format, *member;
98101
zend_object_handlers *std_hnd;
@@ -113,6 +116,7 @@ static int dom_document_get_property_int(zval *id, char *property TSRMLS_DC) {
113116

114117
return retformat;
115118
}
119+
/* }}} end dom_document_get_property_int */
116120

117121
static void php_dom_validate_error(void *ctx, const char *msg, ...)
118122
{
@@ -133,6 +137,7 @@ static void php_dom_validate_error(void *ctx, const char *msg, ...)
133137
efree(buf);
134138
}
135139

140+
/* {{{ static void php_dom_ctx_error(void *ctx, const char *msg, ...) */
136141
static void php_dom_ctx_error(void *ctx, const char *msg, ...)
137142
{
138143
va_list ap;
@@ -154,6 +159,7 @@ static void php_dom_ctx_error(void *ctx, const char *msg, ...)
154159
php_error(E_WARNING, "%s in %s, line: %d", buf, parser->input->filename, parser->input->line);
155160
efree(buf);
156161
}
162+
/* }}} end php_dom_ctx_error */
157163

158164
/* {{{ proto doctype documenttype
159165
readonly=yes
@@ -1077,6 +1083,7 @@ PHP_FUNCTION(dom_document_document)
10771083
}
10781084
/* }}} end dom_document_document */
10791085

1086+
/* {{{ static xmlDocPtr dom_document_parser(zval *id, int mode, char *source TSRMLS_DC) */
10801087
static xmlDocPtr dom_document_parser(zval *id, int mode, char *source TSRMLS_DC) {
10811088
xmlDocPtr ret;
10821089
xmlParserCtxtPtr ctxt;
@@ -1140,7 +1147,9 @@ static xmlDocPtr dom_document_parser(zval *id, int mode, char *source TSRMLS_DC)
11401147

11411148
return(ret);
11421149
}
1150+
/* }}} end dom_parser_document */
11431151

1152+
/* {{{ static void dom_parse_document(INTERNAL_FUNCTION_PARAMETERS, int mode) */
11441153
static void dom_parse_document(INTERNAL_FUNCTION_PARAMETERS, int mode) {
11451154
zval *id, *rv = NULL;
11461155
xmlDoc *docp = NULL, *newdoc;
@@ -1187,6 +1196,7 @@ static void dom_parse_document(INTERNAL_FUNCTION_PARAMETERS, int mode) {
11871196
DOM_RET_OBJ(rv, (xmlNodePtr) newdoc, &ret, NULL);
11881197
}
11891198
}
1199+
/* }}} end dom_parser_document */
11901200

11911201
/* {{{ proto boolean domnode dom_document_load(string source);
11921202
URL: http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-DocumentLS-load

ext/dom/domexception.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ zend_function_entry php_dom_domexception_class_functions[] = {
4141
{NULL, NULL, NULL}
4242
};
4343

44+
/* {{{ php_dom_throw_error */
4445
void php_dom_throw_error(int error_code, int strict_error TSRMLS_DC)
4546
{
4647
char *error_message;
@@ -105,5 +106,6 @@ void php_dom_throw_error(int error_code, int strict_error TSRMLS_DC)
105106
php_error_docref(NULL TSRMLS_CC, E_WARNING, error_message);
106107
}
107108
}
109+
/* }}} end php_dom_throw_error */
108110

109111
#endif /* HAVE_LIBXML && HAVE_DOM */

0 commit comments

Comments
 (0)