diff options
Diffstat (limited to 'ext/dom/document.c')
-rw-r--r-- | ext/dom/document.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/dom/document.c b/ext/dom/document.c index b2c3274063..944d55c20b 100644 --- a/ext/dom/document.c +++ b/ext/dom/document.c @@ -352,7 +352,7 @@ int dom_document_encoding_write(dom_object *obj, zval *newval TSRMLS_DC) php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Document Encoding"); } - STR_RELEASE(str); + zend_string_release(str); return SUCCESS; } @@ -440,7 +440,7 @@ int dom_document_version_write(dom_object *obj, zval *newval TSRMLS_DC) docp->version = xmlStrdup((const xmlChar *) str->val); - STR_RELEASE(str); + zend_string_release(str); return SUCCESS; } @@ -668,7 +668,7 @@ int dom_document_document_uri_write(dom_object *obj, zval *newval TSRMLS_DC) docp->URL = xmlStrdup((const xmlChar *) str->val); - STR_RELEASE(str); + zend_string_release(str); return SUCCESS; } @@ -970,7 +970,7 @@ PHP_FUNCTION(dom_document_import_node) xmlNodePtr nodep, retnodep; dom_object *intern, *nodeobj; int ret; - long recursive = 0; + zend_long recursive = 0; if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "OO|l", &id, dom_document_class_entry, &node, dom_node_class_entry, &recursive) == FAILURE) { return; @@ -1465,7 +1465,7 @@ static void dom_parse_document(INTERNAL_FUNCTION_PARAMETERS, int mode) { dom_object *intern; char *source; int source_len, refcount, ret; - long options = 0; + zend_long options = 0; id = getThis(); if (id != NULL && ! instanceof_function(Z_OBJCE_P(id), dom_document_class_entry TSRMLS_CC)) { @@ -1547,7 +1547,7 @@ PHP_FUNCTION(dom_document_save) dom_object *intern; dom_doc_propsptr doc_props; char *file; - long options = 0; + zend_long options = 0; if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os|l", &id, dom_document_class_entry, &file, &file_len, &options) == FAILURE) { return; @@ -1593,7 +1593,7 @@ PHP_FUNCTION(dom_document_savexml) dom_object *intern, *nodeobj; dom_doc_propsptr doc_props; int size, format, saveempty = 0; - long options = 0; + zend_long options = 0; if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|O!l", &id, dom_document_class_entry, &nodep, dom_node_class_entry, &options) == FAILURE) { return; @@ -1698,7 +1698,7 @@ PHP_FUNCTION(dom_document_xinclude) zval *id; xmlDoc *docp; xmlNodePtr root; - long flags = 0; + zend_long flags = 0; int err; dom_object *intern; @@ -1772,7 +1772,7 @@ static void _dom_document_schema_validate(INTERNAL_FUNCTION_PARAMETERS, int type dom_object *intern; char *source = NULL, *valid_file = NULL; int source_len = 0, valid_opts = 0; - long flags = 0; + zend_long flags = 0; xmlSchemaParserCtxtPtr parser; xmlSchemaPtr sptr; xmlSchemaValidCtxtPtr vptr; @@ -1963,7 +1963,7 @@ static void dom_load_html(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{ */ dom_doc_propsptr doc_prop; char *source; int source_len, refcount, ret; - long options = 0; + zend_long options = 0; htmlParserCtxtPtr ctxt; id = getThis(); |