diff options
Diffstat (limited to 'ext/dom/domimplementation.c')
-rw-r--r-- | ext/dom/domimplementation.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/dom/domimplementation.c b/ext/dom/domimplementation.c index ea2b784b3c..49c54b5f86 100644 --- a/ext/dom/domimplementation.c +++ b/ext/dom/domimplementation.c @@ -73,7 +73,7 @@ PHP_METHOD(domimplementation, hasFeature) size_t feature_len, version_len; char *feature, *version; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &feature, &feature_len, &version, &version_len) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &feature, &feature_len, &version, &version_len) == FAILURE) { return; } @@ -98,12 +98,12 @@ PHP_METHOD(domimplementation, createDocumentType) xmlChar *pch1 = NULL, *pch2 = NULL, *localname = NULL; xmlURIPtr uri; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sss", &name, &name_len, &publicid, &publicid_len, &systemid, &systemid_len) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS(), "|sss", &name, &name_len, &publicid, &publicid_len, &systemid, &systemid_len) == FAILURE) { return; } if (name_len == 0) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "qualifiedName is required"); + php_error_docref(NULL, E_WARNING, "qualifiedName is required"); RETURN_FALSE; } @@ -118,7 +118,7 @@ PHP_METHOD(domimplementation, createDocumentType) if (uri != NULL && uri->opaque != NULL) { localname = xmlStrdup((xmlChar *) uri->opaque); if (xmlStrchr(localname, (xmlChar) ':') != NULL) { - php_dom_throw_error(NAMESPACE_ERR, 1 TSRMLS_CC); + php_dom_throw_error(NAMESPACE_ERR, 1); xmlFreeURI(uri); xmlFree(localname); RETURN_FALSE; @@ -128,7 +128,7 @@ PHP_METHOD(domimplementation, createDocumentType) } /* TODO: Test that localname has no invalid chars - php_dom_throw_error(INVALID_CHARACTER_ERR, TSRMLS_CC); + php_dom_throw_error(INVALID_CHARACTER_ERR,); */ if (uri) { @@ -139,7 +139,7 @@ PHP_METHOD(domimplementation, createDocumentType) xmlFree(localname); if (doctype == NULL) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to create DocumentType"); + php_error_docref(NULL, E_WARNING, "Unable to create DocumentType"); RETURN_FALSE; } @@ -164,18 +164,18 @@ PHP_METHOD(domimplementation, createDocument) char *prefix = NULL, *localname = NULL; dom_object *doctobj; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ssO", &uri, &uri_len, &name, &name_len, &node, dom_documenttype_class_entry) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS(), "|ssO", &uri, &uri_len, &name, &name_len, &node, dom_documenttype_class_entry) == FAILURE) { return; } if (node != NULL) { DOM_GET_OBJ(doctype, node, xmlDtdPtr, doctobj); if (doctype->type == XML_DOCUMENT_TYPE_NODE) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid DocumentType object"); + php_error_docref(NULL, E_WARNING, "Invalid DocumentType object"); RETURN_FALSE; } if (doctype->doc != NULL) { - php_dom_throw_error(WRONG_DOCUMENT_ERR, 1 TSRMLS_CC); + php_dom_throw_error(WRONG_DOCUMENT_ERR, 1); RETURN_FALSE; } } else { @@ -199,7 +199,7 @@ PHP_METHOD(domimplementation, createDocument) if (localname != NULL) { xmlFree(localname); } - php_dom_throw_error(errorcode, 1 TSRMLS_CC); + php_dom_throw_error(errorcode, 1); RETURN_FALSE; } @@ -233,7 +233,7 @@ PHP_METHOD(domimplementation, createDocument) xmlFreeDoc(docp); xmlFree(localname); /* Need some type of error here */ - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unexpected Error"); + php_error_docref(NULL, E_WARNING, "Unexpected Error"); RETURN_FALSE; } @@ -247,7 +247,7 @@ PHP_METHOD(domimplementation, createDocument) if (doctobj != NULL) { doctobj->document = ((dom_object *)((php_libxml_node_ptr *)docp->_private)->_private)->document; - php_libxml_increment_doc_ref((php_libxml_node_object *)doctobj, docp TSRMLS_CC); + php_libxml_increment_doc_ref((php_libxml_node_object *)doctobj, docp); } } /* }}} end dom_domimplementation_create_document */ |