Skip to content

Remove unimplemented DOM classes #4707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ext/dom/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ if test "$PHP_DOM" != "no"; then

PHP_SETUP_LIBXML(DOM_SHARED_LIBADD, [
AC_DEFINE(HAVE_DOM,1,[ ])
PHP_NEW_EXTENSION(dom, [php_dom.c attr.c document.c domerrorhandler.c \
domstringlist.c domexception.c namelist.c \
PHP_NEW_EXTENSION(dom, [php_dom.c attr.c document.c \
domstringlist.c domexception.c \
processinginstruction.c cdatasection.c \
documentfragment.c domimplementation.c \
element.c node.c string_extend.c characterdata.c \
documenttype.c domimplementationlist.c entity.c \
nodelist.c text.c comment.c domconfiguration.c \
domimplementationsource.c entityreference.c \
documenttype.c entity.c \
nodelist.c text.c comment.c \
entityreference.c \
notation.c xpath.c dom_iterators.c \
typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c],
namednodemap.c],
$ext_shared)
PHP_SUBST(DOM_SHARED_LIBADD)
PHP_INSTALL_HEADERS([ext/dom/xml_common.h])
Expand Down
12 changes: 6 additions & 6 deletions ext/dom/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ if (PHP_DOM == "yes") {
ADD_EXTENSION_DEP('dom', 'libxml') &&
CHECK_HEADER_ADD_INCLUDE("libxml/parser.h", "CFLAGS_DOM", PHP_PHP_BUILD + "\\include\\libxml2")
) {
EXTENSION("dom", "php_dom.c attr.c document.c domerrorhandler.c \
domstringlist.c domexception.c namelist.c processinginstruction.c \
EXTENSION("dom", "php_dom.c attr.c document.c \
domstringlist.c domexception.c processinginstruction.c \
cdatasection.c documentfragment.c domimplementation.c element.c \
node.c string_extend.c characterdata.c documenttype.c \
domimplementationlist.c entity.c nodelist.c text.c comment.c \
domconfiguration.c domimplementationsource.c entityreference.c \
notation.c xpath.c dom_iterators.c typeinfo.c domerror.c \
domlocator.c namednodemap.c userdatahandler.c");
entity.c nodelist.c text.c comment.c \
entityreference.c \
notation.c xpath.c dom_iterators.c \
namednodemap.c");

AC_DEFINE("HAVE_DOM", 1, "DOM support");

Expand Down
9 changes: 0 additions & 9 deletions ext/dom/dom_ce.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
extern PHP_DOM_EXPORT zend_class_entry *dom_node_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_domexception_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_domstringlist_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_namelist_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_domimplementationlist_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_domimplementationsource_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_domimplementation_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_documentfragment_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_document_class_entry;
Expand All @@ -36,12 +33,6 @@ extern PHP_DOM_EXPORT zend_class_entry *dom_attr_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_element_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_text_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_comment_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_typeinfo_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_userdatahandler_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_domerror_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_domerrorhandler_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_domlocator_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_domconfiguration_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_cdatasection_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_documenttype_class_entry;
extern PHP_DOM_EXPORT zend_class_entry *dom_notation_class_entry;
Expand Down
37 changes: 0 additions & 37 deletions ext/dom/dom_fe.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

extern const zend_function_entry php_dom_domexception_class_functions[];
extern const zend_function_entry php_dom_domstringlist_class_functions[];
extern const zend_function_entry php_dom_namelist_class_functions[];
extern const zend_function_entry php_dom_domimplementationlist_class_functions[];
extern const zend_function_entry php_dom_domimplementationsource_class_functions[];
extern const zend_function_entry php_dom_domimplementation_class_functions[];
extern const zend_function_entry php_dom_documentfragment_class_functions[];
extern const zend_function_entry php_dom_document_class_functions[];
Expand All @@ -36,12 +33,6 @@ extern const zend_function_entry php_dom_attr_class_functions[];
extern const zend_function_entry php_dom_element_class_functions[];
extern const zend_function_entry php_dom_text_class_functions[];
extern const zend_function_entry php_dom_comment_class_functions[];
extern const zend_function_entry php_dom_typeinfo_class_functions[];
extern const zend_function_entry php_dom_userdatahandler_class_functions[];
extern const zend_function_entry php_dom_domerror_class_functions[];
extern const zend_function_entry php_dom_domerrorhandler_class_functions[];
extern const zend_function_entry php_dom_domlocator_class_functions[];
extern const zend_function_entry php_dom_domconfiguration_class_functions[];
extern const zend_function_entry php_dom_cdatasection_class_functions[];
extern const zend_function_entry php_dom_documenttype_class_functions[];
extern const zend_function_entry php_dom_notation_class_functions[];
Expand Down Expand Up @@ -82,17 +73,6 @@ typedef enum {
/* domstringlist methods */
PHP_FUNCTION(dom_domstringlist_item);

/* domnamelist methods */
PHP_FUNCTION(dom_namelist_get_name);
PHP_FUNCTION(dom_namelist_get_namespace_uri);

/* domimplementationlist methods */
PHP_FUNCTION(dom_domimplementationlist_item);

/* domimplementationsource methods */
PHP_FUNCTION(dom_domimplementationsource_get_domimplementation);
PHP_FUNCTION(dom_domimplementationsource_get_domimplementations);

/* domimplementation methods */
PHP_METHOD(domimplementation, hasFeature);
PHP_METHOD(domimplementation, createDocumentType);
Expand Down Expand Up @@ -224,23 +204,6 @@ PHP_METHOD(domtext, __construct);
/* domcomment methods */
PHP_METHOD(domcomment, __construct);

/* domtypeinfo methods */

/* domuserdatahandler methods */
PHP_FUNCTION(dom_userdatahandler_handle);

/* domdomerror methods */

/* domerrorhandler methods */
PHP_FUNCTION(dom_domerrorhandler_handle_error);

/* domlocator methods */

/* domconfiguration methods */
PHP_FUNCTION(dom_domconfiguration_set_parameter);
PHP_FUNCTION(dom_domconfiguration_get_parameter);
PHP_FUNCTION(dom_domconfiguration_can_set_parameter);

/* domcdatasection methods */
PHP_METHOD(domcdatasection, __construct);

Expand Down
25 changes: 0 additions & 25 deletions ext/dom/dom_properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,6 @@ int dom_documenttype_public_id_read(dom_object *obj, zval *retval);
int dom_documenttype_system_id_read(dom_object *obj, zval *retval);
int dom_documenttype_internal_subset_read(dom_object *obj, zval *retval);

/* domerror properties */
int dom_domerror_severity_read(dom_object *obj, zval *retval);
int dom_domerror_message_read(dom_object *obj, zval *retval);
int dom_domerror_type_read(dom_object *obj, zval *retval);
int dom_domerror_related_exception_read(dom_object *obj, zval *retval);
int dom_domerror_related_data_read(dom_object *obj, zval *retval);
int dom_domerror_location_read(dom_object *obj, zval *retval);

/* domimplementationlist properties */
int dom_domimplementationlist_length_read(dom_object *obj, zval *retval);

/* domlocator properties */
int dom_domlocator_line_number_read(dom_object *obj, zval *retval);
int dom_domlocator_column_number_read(dom_object *obj, zval *retval);
int dom_domlocator_offset_read(dom_object *obj, zval *retval);
int dom_domlocator_related_node_read(dom_object *obj, zval *retval);
int dom_domlocator_uri_read(dom_object *obj, zval *retval);

/* domstringlist properties */
int dom_domstringlist_length_read(dom_object *obj, zval *retval);

Expand All @@ -110,9 +92,6 @@ int dom_entity_version_write(dom_object *obj, zval *newval);
/* namednodemap properties */
int dom_namednodemap_length_read(dom_object *obj, zval *retval);

/* namelist properties */
int dom_namelist_length_read(dom_object *obj, zval *retval);

/* node properties */
int dom_node_node_name_read(dom_object *obj, zval *retval);
int dom_node_node_value_read(dom_object *obj, zval *retval);
Expand Down Expand Up @@ -151,10 +130,6 @@ int dom_processinginstruction_data_write(dom_object *obj, zval *newval);
/* text properties */
int dom_text_whole_text_read(dom_object *obj, zval *retval);

/* typeinfo properties */
int dom_typeinfo_type_name_read(dom_object *obj, zval *retval);
int dom_typeinfo_type_namespace_read(dom_object *obj, zval *retval);

#if defined(LIBXML_XPATH_ENABLED)
/* xpath properties */
int dom_xpath_document_read(dom_object *obj, zval *retval);
Expand Down
92 changes: 0 additions & 92 deletions ext/dom/domconfiguration.c

This file was deleted.

122 changes: 0 additions & 122 deletions ext/dom/domerror.c

This file was deleted.

Loading