@@ -85,14 +85,17 @@ zend_function_entry php_dom_document_class_functions[] = {
85
85
{NULL , NULL , NULL }
86
86
};
87
87
88
+ /* {{{ void add_domdocument_properties(zval *id) */
88
89
void add_domdocument_properties (zval * id TSRMLS_DC ) {
89
90
add_property_bool (id , "formatOutput" , 0 );
90
91
add_property_bool (id , "validateOnParse" , 0 );
91
92
add_property_bool (id , "resolveExternals" , 0 );
92
93
add_property_bool (id , "preserveWhiteSpace" , 1 );
93
94
add_property_bool (id , "substituteEntities" , 0 );
94
95
}
96
+ /* }}} end add_domdocument_properties */
95
97
98
+ /* {{{ static int dom_document_get_property_int(zval *id, char *property TSRMLS_DC) */
96
99
static int dom_document_get_property_int (zval * id , char * property TSRMLS_DC ) {
97
100
zval * format , * member ;
98
101
zend_object_handlers * std_hnd ;
@@ -113,6 +116,7 @@ static int dom_document_get_property_int(zval *id, char *property TSRMLS_DC) {
113
116
114
117
return retformat ;
115
118
}
119
+ /* }}} end dom_document_get_property_int */
116
120
117
121
static void php_dom_validate_error (void * ctx , const char * msg , ...)
118
122
{
@@ -133,6 +137,7 @@ static void php_dom_validate_error(void *ctx, const char *msg, ...)
133
137
efree (buf );
134
138
}
135
139
140
+ /* {{{ static void php_dom_ctx_error(void *ctx, const char *msg, ...) */
136
141
static void php_dom_ctx_error (void * ctx , const char * msg , ...)
137
142
{
138
143
va_list ap ;
@@ -154,6 +159,7 @@ static void php_dom_ctx_error(void *ctx, const char *msg, ...)
154
159
php_error (E_WARNING , "%s in %s, line: %d" , buf , parser -> input -> filename , parser -> input -> line );
155
160
efree (buf );
156
161
}
162
+ /* }}} end php_dom_ctx_error */
157
163
158
164
/* {{{ proto doctype documenttype
159
165
readonly=yes
@@ -1077,6 +1083,7 @@ PHP_FUNCTION(dom_document_document)
1077
1083
}
1078
1084
/* }}} end dom_document_document */
1079
1085
1086
+ /* {{{ static xmlDocPtr dom_document_parser(zval *id, int mode, char *source TSRMLS_DC) */
1080
1087
static xmlDocPtr dom_document_parser (zval * id , int mode , char * source TSRMLS_DC ) {
1081
1088
xmlDocPtr ret ;
1082
1089
xmlParserCtxtPtr ctxt ;
@@ -1140,7 +1147,9 @@ static xmlDocPtr dom_document_parser(zval *id, int mode, char *source TSRMLS_DC)
1140
1147
1141
1148
return (ret );
1142
1149
}
1150
+ /* }}} end dom_parser_document */
1143
1151
1152
+ /* {{{ static void dom_parse_document(INTERNAL_FUNCTION_PARAMETERS, int mode) */
1144
1153
static void dom_parse_document (INTERNAL_FUNCTION_PARAMETERS , int mode ) {
1145
1154
zval * id , * rv = NULL ;
1146
1155
xmlDoc * docp = NULL , * newdoc ;
@@ -1187,6 +1196,7 @@ static void dom_parse_document(INTERNAL_FUNCTION_PARAMETERS, int mode) {
1187
1196
DOM_RET_OBJ (rv , (xmlNodePtr ) newdoc , & ret , NULL );
1188
1197
}
1189
1198
}
1199
+ /* }}} end dom_parser_document */
1190
1200
1191
1201
/* {{{ proto boolean domnode dom_document_load(string source);
1192
1202
URL: http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-DocumentLS-load
0 commit comments