mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
Cleanup ext/dom: Removal of unimplemented dummy classes.
The following classes were registered in ext/dom but neither documented nor had any behavior (only test data). These classes are now removed: - DOMNameList - DomImplementationList - DOMConfiguration - DomError - DomErrorHandler - DOMImplementationSource - DOMLocator - DOMUserDataHandler - DOMTypeInfo
This commit is contained in:
parent
07d0ebb15b
commit
25bfac44b0
15 changed files with 12 additions and 887 deletions
|
@ -12,16 +12,16 @@ if test "$PHP_DOM" != "no"; then
|
||||||
|
|
||||||
PHP_SETUP_LIBXML(DOM_SHARED_LIBADD, [
|
PHP_SETUP_LIBXML(DOM_SHARED_LIBADD, [
|
||||||
AC_DEFINE(HAVE_DOM,1,[ ])
|
AC_DEFINE(HAVE_DOM,1,[ ])
|
||||||
PHP_NEW_EXTENSION(dom, [php_dom.c attr.c document.c domerrorhandler.c \
|
PHP_NEW_EXTENSION(dom, [php_dom.c attr.c document.c \
|
||||||
domstringlist.c domexception.c namelist.c \
|
domstringlist.c domexception.c \
|
||||||
processinginstruction.c cdatasection.c \
|
processinginstruction.c cdatasection.c \
|
||||||
documentfragment.c domimplementation.c \
|
documentfragment.c domimplementation.c \
|
||||||
element.c node.c string_extend.c characterdata.c \
|
element.c node.c string_extend.c characterdata.c \
|
||||||
documenttype.c domimplementationlist.c entity.c \
|
documenttype.c entity.c \
|
||||||
nodelist.c text.c comment.c domconfiguration.c \
|
nodelist.c text.c comment.c \
|
||||||
domimplementationsource.c entityreference.c \
|
entityreference.c \
|
||||||
notation.c xpath.c dom_iterators.c \
|
notation.c xpath.c dom_iterators.c \
|
||||||
typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c],
|
namednodemap.c],
|
||||||
$ext_shared)
|
$ext_shared)
|
||||||
PHP_SUBST(DOM_SHARED_LIBADD)
|
PHP_SUBST(DOM_SHARED_LIBADD)
|
||||||
PHP_INSTALL_HEADERS([ext/dom/xml_common.h])
|
PHP_INSTALL_HEADERS([ext/dom/xml_common.h])
|
||||||
|
|
|
@ -7,14 +7,14 @@ if (PHP_DOM == "yes") {
|
||||||
ADD_EXTENSION_DEP('dom', 'libxml') &&
|
ADD_EXTENSION_DEP('dom', 'libxml') &&
|
||||||
CHECK_HEADER_ADD_INCLUDE("libxml/parser.h", "CFLAGS_DOM", PHP_PHP_BUILD + "\\include\\libxml2")
|
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 \
|
EXTENSION("dom", "php_dom.c attr.c document.c \
|
||||||
domstringlist.c domexception.c namelist.c processinginstruction.c \
|
domstringlist.c domexception.c processinginstruction.c \
|
||||||
cdatasection.c documentfragment.c domimplementation.c element.c \
|
cdatasection.c documentfragment.c domimplementation.c element.c \
|
||||||
node.c string_extend.c characterdata.c documenttype.c \
|
node.c string_extend.c characterdata.c documenttype.c \
|
||||||
domimplementationlist.c entity.c nodelist.c text.c comment.c \
|
entity.c nodelist.c text.c comment.c \
|
||||||
domconfiguration.c domimplementationsource.c entityreference.c \
|
entityreference.c \
|
||||||
notation.c xpath.c dom_iterators.c typeinfo.c domerror.c \
|
notation.c xpath.c dom_iterators.c \
|
||||||
domlocator.c namednodemap.c userdatahandler.c");
|
namednodemap.c");
|
||||||
|
|
||||||
AC_DEFINE("HAVE_DOM", 1, "DOM support");
|
AC_DEFINE("HAVE_DOM", 1, "DOM support");
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,6 @@
|
||||||
extern PHP_DOM_EXPORT zend_class_entry *dom_node_class_entry;
|
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_domexception_class_entry;
|
||||||
extern PHP_DOM_EXPORT zend_class_entry *dom_domstringlist_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_domimplementation_class_entry;
|
||||||
extern PHP_DOM_EXPORT zend_class_entry *dom_documentfragment_class_entry;
|
extern PHP_DOM_EXPORT zend_class_entry *dom_documentfragment_class_entry;
|
||||||
extern PHP_DOM_EXPORT zend_class_entry *dom_document_class_entry;
|
extern PHP_DOM_EXPORT zend_class_entry *dom_document_class_entry;
|
||||||
|
@ -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_element_class_entry;
|
||||||
extern PHP_DOM_EXPORT zend_class_entry *dom_text_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_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_cdatasection_class_entry;
|
||||||
extern PHP_DOM_EXPORT zend_class_entry *dom_documenttype_class_entry;
|
extern PHP_DOM_EXPORT zend_class_entry *dom_documenttype_class_entry;
|
||||||
extern PHP_DOM_EXPORT zend_class_entry *dom_notation_class_entry;
|
extern PHP_DOM_EXPORT zend_class_entry *dom_notation_class_entry;
|
||||||
|
|
|
@ -22,9 +22,6 @@
|
||||||
|
|
||||||
extern const zend_function_entry php_dom_domexception_class_functions[];
|
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_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_domimplementation_class_functions[];
|
||||||
extern const zend_function_entry php_dom_documentfragment_class_functions[];
|
extern const zend_function_entry php_dom_documentfragment_class_functions[];
|
||||||
extern const zend_function_entry php_dom_document_class_functions[];
|
extern const zend_function_entry php_dom_document_class_functions[];
|
||||||
|
@ -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_element_class_functions[];
|
||||||
extern const zend_function_entry php_dom_text_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_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_cdatasection_class_functions[];
|
||||||
extern const zend_function_entry php_dom_documenttype_class_functions[];
|
extern const zend_function_entry php_dom_documenttype_class_functions[];
|
||||||
extern const zend_function_entry php_dom_notation_class_functions[];
|
extern const zend_function_entry php_dom_notation_class_functions[];
|
||||||
|
@ -82,17 +73,6 @@ typedef enum {
|
||||||
/* domstringlist methods */
|
/* domstringlist methods */
|
||||||
PHP_FUNCTION(dom_domstringlist_item);
|
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 */
|
/* domimplementation methods */
|
||||||
PHP_METHOD(domimplementation, hasFeature);
|
PHP_METHOD(domimplementation, hasFeature);
|
||||||
PHP_METHOD(domimplementation, createDocumentType);
|
PHP_METHOD(domimplementation, createDocumentType);
|
||||||
|
@ -224,23 +204,6 @@ PHP_METHOD(domtext, __construct);
|
||||||
/* domcomment methods */
|
/* domcomment methods */
|
||||||
PHP_METHOD(domcomment, __construct);
|
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 */
|
/* domcdatasection methods */
|
||||||
PHP_METHOD(domcdatasection, __construct);
|
PHP_METHOD(domcdatasection, __construct);
|
||||||
|
|
||||||
|
|
|
@ -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_system_id_read(dom_object *obj, zval *retval);
|
||||||
int dom_documenttype_internal_subset_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 */
|
/* domstringlist properties */
|
||||||
int dom_domstringlist_length_read(dom_object *obj, zval *retval);
|
int dom_domstringlist_length_read(dom_object *obj, zval *retval);
|
||||||
|
|
||||||
|
@ -110,9 +92,6 @@ int dom_entity_version_write(dom_object *obj, zval *newval);
|
||||||
/* namednodemap properties */
|
/* namednodemap properties */
|
||||||
int dom_namednodemap_length_read(dom_object *obj, zval *retval);
|
int dom_namednodemap_length_read(dom_object *obj, zval *retval);
|
||||||
|
|
||||||
/* namelist properties */
|
|
||||||
int dom_namelist_length_read(dom_object *obj, zval *retval);
|
|
||||||
|
|
||||||
/* node properties */
|
/* node properties */
|
||||||
int dom_node_node_name_read(dom_object *obj, zval *retval);
|
int dom_node_node_name_read(dom_object *obj, zval *retval);
|
||||||
int dom_node_node_value_read(dom_object *obj, zval *retval);
|
int dom_node_node_value_read(dom_object *obj, zval *retval);
|
||||||
|
@ -151,10 +130,6 @@ int dom_processinginstruction_data_write(dom_object *obj, zval *newval);
|
||||||
/* text properties */
|
/* text properties */
|
||||||
int dom_text_whole_text_read(dom_object *obj, zval *retval);
|
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)
|
#if defined(LIBXML_XPATH_ENABLED)
|
||||||
/* xpath properties */
|
/* xpath properties */
|
||||||
int dom_xpath_document_read(dom_object *obj, zval *retval);
|
int dom_xpath_document_read(dom_object *obj, zval *retval);
|
||||||
|
|
|
@ -1,92 +0,0 @@
|
||||||
/*
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| PHP Version 7 |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Copyright (c) The PHP Group |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| This source file is subject to version 3.01 of the PHP license, |
|
|
||||||
| that is bundled with this package in the file LICENSE, and is |
|
|
||||||
| available through the world-wide-web at the following url: |
|
|
||||||
| http://www.php.net/license/3_01.txt |
|
|
||||||
| If you did not receive a copy of the PHP license and are unable to |
|
|
||||||
| obtain it through the world-wide-web, please send a note to |
|
|
||||||
| license@php.net so we can mail you a copy immediately. |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Authors: Christian Stocker <chregu@php.net> |
|
|
||||||
| Rob Richards <rrichards@php.net> |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "php.h"
|
|
||||||
#if HAVE_LIBXML && HAVE_DOM
|
|
||||||
#include "php_dom.h"
|
|
||||||
|
|
||||||
/* {{{ arginfo */
|
|
||||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_configuration_set_parameter, 0, 0, 2)
|
|
||||||
ZEND_ARG_INFO(0, name)
|
|
||||||
ZEND_ARG_INFO(0, value)
|
|
||||||
ZEND_END_ARG_INFO();
|
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_configuration_get_parameter, 0, 0, 0)
|
|
||||||
ZEND_ARG_INFO(0, name)
|
|
||||||
ZEND_END_ARG_INFO();
|
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_configuration_can_set_parameter, 0, 0, 0)
|
|
||||||
ZEND_ARG_INFO(0, name)
|
|
||||||
ZEND_ARG_INFO(0, value)
|
|
||||||
ZEND_END_ARG_INFO();
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* class domdomconfiguration
|
|
||||||
*
|
|
||||||
* URL: https://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMConfiguration
|
|
||||||
* Since: DOM Level 3
|
|
||||||
*/
|
|
||||||
|
|
||||||
const zend_function_entry php_dom_domconfiguration_class_functions[] = {
|
|
||||||
PHP_FALIAS(setParameter, dom_domconfiguration_set_parameter, arginfo_dom_configuration_set_parameter)
|
|
||||||
PHP_FALIAS(getParameter, dom_domconfiguration_get_parameter, arginfo_dom_configuration_get_parameter)
|
|
||||||
PHP_FALIAS(canSetParameter, dom_domconfiguration_can_set_parameter, arginfo_dom_configuration_can_set_parameter)
|
|
||||||
PHP_FE_END
|
|
||||||
};
|
|
||||||
|
|
||||||
/* {{{ attribute protos, not implemented yet */
|
|
||||||
|
|
||||||
/* {{{ proto dom_void dom_domconfiguration_set_parameter(string name, domuserdata value);
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMConfiguration-property
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
PHP_FUNCTION(dom_domconfiguration_set_parameter)
|
|
||||||
{
|
|
||||||
DOM_NOT_IMPLEMENTED();
|
|
||||||
}
|
|
||||||
/* }}} end dom_domconfiguration_set_parameter */
|
|
||||||
|
|
||||||
/* {{{ proto domdomuserdata dom_domconfiguration_get_parameter(string name);
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMConfiguration-getParameter
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
PHP_FUNCTION(dom_domconfiguration_get_parameter)
|
|
||||||
{
|
|
||||||
DOM_NOT_IMPLEMENTED();
|
|
||||||
}
|
|
||||||
/* }}} end dom_domconfiguration_get_parameter */
|
|
||||||
|
|
||||||
/* {{{ proto bool dom_domconfiguration_can_set_parameter(string name, domuserdata value);
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMConfiguration-canSetParameter
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
PHP_FUNCTION(dom_domconfiguration_can_set_parameter)
|
|
||||||
{
|
|
||||||
DOM_NOT_IMPLEMENTED();
|
|
||||||
}
|
|
||||||
/* }}} end dom_domconfiguration_can_set_parameter */
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,122 +0,0 @@
|
||||||
/*
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| PHP Version 7 |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Copyright (c) The PHP Group |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| This source file is subject to version 3.01 of the PHP license, |
|
|
||||||
| that is bundled with this package in the file LICENSE, and is |
|
|
||||||
| available through the world-wide-web at the following url: |
|
|
||||||
| http://www.php.net/license/3_01.txt |
|
|
||||||
| If you did not receive a copy of the PHP license and are unable to |
|
|
||||||
| obtain it through the world-wide-web, please send a note to |
|
|
||||||
| license@php.net so we can mail you a copy immediately. |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Authors: Christian Stocker <chregu@php.net> |
|
|
||||||
| Rob Richards <rrichards@php.net> |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "php.h"
|
|
||||||
#if HAVE_LIBXML && HAVE_DOM
|
|
||||||
#include "php_dom.h"
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* class domerror
|
|
||||||
*
|
|
||||||
* URL: https://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-Interfaces-DOMError
|
|
||||||
* Since: DOM Level 3
|
|
||||||
*/
|
|
||||||
|
|
||||||
const zend_function_entry php_dom_domerror_class_functions[] = {
|
|
||||||
PHP_FE_END
|
|
||||||
};
|
|
||||||
|
|
||||||
/* {{{ attribute protos, not implemented yet */
|
|
||||||
|
|
||||||
/* {{{ severity unsigned short
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-severity
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_domerror_severity_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_STRING(retval, "TEST");
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ message string
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-message
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_domerror_message_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_STRING(retval, "TEST");
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ type string
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-type
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_domerror_type_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_STRING(retval, "TEST");
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ relatedException object
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-relatedException
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_domerror_related_exception_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_STRING(retval, "TEST");
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ relatedData domobject
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-relatedData
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_domerror_related_data_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_STRING(retval, "TEST");
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ location domlocator
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-location
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_domerror_location_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_STRING(retval, "TEST");
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| PHP Version 7 |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Copyright (c) The PHP Group |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| This source file is subject to version 3.01 of the PHP license, |
|
|
||||||
| that is bundled with this package in the file LICENSE, and is |
|
|
||||||
| available through the world-wide-web at the following url: |
|
|
||||||
| http://www.php.net/license/3_01.txt |
|
|
||||||
| If you did not receive a copy of the PHP license and are unable to |
|
|
||||||
| obtain it through the world-wide-web, please send a note to |
|
|
||||||
| license@php.net so we can mail you a copy immediately. |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Authors: Christian Stocker <chregu@php.net> |
|
|
||||||
| Rob Richards <rrichards@php.net> |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "php.h"
|
|
||||||
#if HAVE_LIBXML && HAVE_DOM
|
|
||||||
#include "php_dom.h"
|
|
||||||
|
|
||||||
/* {{{ arginfo */
|
|
||||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_domerrorhandler_handle_error, 0, 0, 1)
|
|
||||||
ZEND_ARG_OBJ_INFO(0, error, DOMDomError, 0)
|
|
||||||
ZEND_END_ARG_INFO();
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* class domerrorhandler
|
|
||||||
*
|
|
||||||
* URL: https://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-Interfaces-DOMErrorHandler
|
|
||||||
* Since: DOM Level 3
|
|
||||||
*/
|
|
||||||
|
|
||||||
const zend_function_entry php_dom_domerrorhandler_class_functions[] = {
|
|
||||||
PHP_FALIAS(handleError, dom_domerrorhandler_handle_error, arginfo_dom_domerrorhandler_handle_error)
|
|
||||||
PHP_FE_END
|
|
||||||
};
|
|
||||||
|
|
||||||
/* {{{ attribute protos, not implemented yet */
|
|
||||||
|
|
||||||
/* {{{ proto dom_boolean dom_domerrorhandler_handle_error(domerror error);
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-ERRORS-DOMErrorHandler-handleError
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
PHP_FUNCTION(dom_domerrorhandler_handle_error)
|
|
||||||
{
|
|
||||||
DOM_NOT_IMPLEMENTED();
|
|
||||||
}
|
|
||||||
/* }}} end dom_domerrorhandler_handle_error */
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,73 +0,0 @@
|
||||||
/*
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| PHP Version 7 |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Copyright (c) The PHP Group |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| This source file is subject to version 3.01 of the PHP license, |
|
|
||||||
| that is bundled with this package in the file LICENSE, and is |
|
|
||||||
| available through the world-wide-web at the following url: |
|
|
||||||
| http://www.php.net/license/3_01.txt |
|
|
||||||
| If you did not receive a copy of the PHP license and are unable to |
|
|
||||||
| obtain it through the world-wide-web, please send a note to |
|
|
||||||
| license@php.net so we can mail you a copy immediately. |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Authors: Christian Stocker <chregu@php.net> |
|
|
||||||
| Rob Richards <rrichards@php.net> |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "php.h"
|
|
||||||
#if HAVE_LIBXML && HAVE_DOM
|
|
||||||
#include "php_dom.h"
|
|
||||||
|
|
||||||
/* {{{ arginfo */
|
|
||||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_implementationlist_item, 0, 0, 1)
|
|
||||||
ZEND_ARG_INFO(0, index)
|
|
||||||
ZEND_END_ARG_INFO();
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* class domimplementationlist
|
|
||||||
*
|
|
||||||
* URL: https://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMImplementationList
|
|
||||||
* Since: DOM Level 3
|
|
||||||
*/
|
|
||||||
|
|
||||||
const zend_function_entry php_dom_domimplementationlist_class_functions[] = {
|
|
||||||
PHP_FALIAS(item, dom_domimplementationlist_item, arginfo_dom_implementationlist_item)
|
|
||||||
PHP_FE_END
|
|
||||||
};
|
|
||||||
|
|
||||||
/* {{{ attribute protos, not implemented yet */
|
|
||||||
|
|
||||||
/* {{{ length unsigned long
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMImplementationList-length
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_domimplementationlist_length_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_STRING(retval, "TEST");
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ proto domdomimplementation dom_domimplementationlist_item(int index);
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMImplementationList-item
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
PHP_FUNCTION(dom_domimplementationlist_item)
|
|
||||||
{
|
|
||||||
DOM_NOT_IMPLEMENTED();
|
|
||||||
}
|
|
||||||
/* }}} end dom_domimplementationlist_item */
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,76 +0,0 @@
|
||||||
/*
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| PHP Version 7 |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Copyright (c) The PHP Group |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| This source file is subject to version 3.01 of the PHP license, |
|
|
||||||
| that is bundled with this package in the file LICENSE, and is |
|
|
||||||
| available through the world-wide-web at the following url: |
|
|
||||||
| http://www.php.net/license/3_01.txt |
|
|
||||||
| If you did not receive a copy of the PHP license and are unable to |
|
|
||||||
| obtain it through the world-wide-web, please send a note to |
|
|
||||||
| license@php.net so we can mail you a copy immediately. |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Authors: Christian Stocker <chregu@php.net> |
|
|
||||||
| Rob Richards <rrichards@php.net> |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "php.h"
|
|
||||||
#if HAVE_LIBXML && HAVE_DOM
|
|
||||||
#include "php_dom.h"
|
|
||||||
|
|
||||||
|
|
||||||
/* {{{ arginfo */
|
|
||||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_implementationsource_getdomimplementation, 0, 0, 1)
|
|
||||||
ZEND_ARG_INFO(0, features)
|
|
||||||
ZEND_END_ARG_INFO();
|
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_implementationsource_getdomimplementations, 0, 0, 1)
|
|
||||||
ZEND_ARG_INFO(0, features)
|
|
||||||
ZEND_END_ARG_INFO();
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* class domimplementationsource
|
|
||||||
*
|
|
||||||
* URL: https://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMImplementationSource
|
|
||||||
* Since: DOM Level 3
|
|
||||||
*/
|
|
||||||
|
|
||||||
const zend_function_entry php_dom_domimplementationsource_class_functions[] = {
|
|
||||||
PHP_FALIAS(getDomimplementation, dom_domimplementationsource_get_domimplementation, arginfo_dom_implementationsource_getdomimplementation)
|
|
||||||
PHP_FALIAS(getDomimplementations, dom_domimplementationsource_get_domimplementations, arginfo_dom_implementationsource_getdomimplementations)
|
|
||||||
PHP_FE_END
|
|
||||||
};
|
|
||||||
|
|
||||||
/* {{{ attribute protos, not implemented yet */
|
|
||||||
|
|
||||||
/* {{{ proto domdomimplementation dom_domimplementationsource_get_domimplementation(string features);
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-getDOMImpl
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
PHP_FUNCTION(dom_domimplementationsource_get_domimplementation)
|
|
||||||
{
|
|
||||||
DOM_NOT_IMPLEMENTED();
|
|
||||||
}
|
|
||||||
/* }}} end dom_domimplementationsource_get_domimplementation */
|
|
||||||
|
|
||||||
/* {{{ proto domimplementationlist dom_domimplementationsource_get_domimplementations(string features);
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-getDOMImpls
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
PHP_FUNCTION(dom_domimplementationsource_get_domimplementations)
|
|
||||||
{
|
|
||||||
DOM_NOT_IMPLEMENTED();
|
|
||||||
}
|
|
||||||
/* }}} end dom_domimplementationsource_get_domimplementations */
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,109 +0,0 @@
|
||||||
/*
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| PHP Version 7 |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Copyright (c) The PHP Group |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| This source file is subject to version 3.01 of the PHP license, |
|
|
||||||
| that is bundled with this package in the file LICENSE, and is |
|
|
||||||
| available through the world-wide-web at the following url: |
|
|
||||||
| http://www.php.net/license/3_01.txt |
|
|
||||||
| If you did not receive a copy of the PHP license and are unable to |
|
|
||||||
| obtain it through the world-wide-web, please send a note to |
|
|
||||||
| license@php.net so we can mail you a copy immediately. |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Authors: Christian Stocker <chregu@php.net> |
|
|
||||||
| Rob Richards <rrichards@php.net> |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "php.h"
|
|
||||||
#if HAVE_LIBXML && HAVE_DOM
|
|
||||||
#include "php_dom.h"
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* class domlocator
|
|
||||||
*
|
|
||||||
* URL: https://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Interfaces-DOMLocator
|
|
||||||
* Since: DOM Level 3
|
|
||||||
*/
|
|
||||||
|
|
||||||
const zend_function_entry php_dom_domlocator_class_functions[] = {
|
|
||||||
PHP_FE_END
|
|
||||||
};
|
|
||||||
|
|
||||||
/* {{{ attribute protos, not implemented yet */
|
|
||||||
|
|
||||||
/* {{{ line_number long
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-line-number
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_domlocator_line_number_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_STRING(retval, "TEST");
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ column_number long
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-column-number
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_domlocator_column_number_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_STRING(retval, "TEST");
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ offset long
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-offset
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_domlocator_offset_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_STRING(retval, "TEST");
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ related_node node
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-node
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_domlocator_related_node_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_STRING(retval, "TEST");
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ uri string
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-uri
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_domlocator_uri_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_STRING(retval, "TEST");
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,84 +0,0 @@
|
||||||
/*
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| PHP Version 7 |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Copyright (c) The PHP Group |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| This source file is subject to version 3.01 of the PHP license, |
|
|
||||||
| that is bundled with this package in the file LICENSE, and is |
|
|
||||||
| available through the world-wide-web at the following url: |
|
|
||||||
| http://www.php.net/license/3_01.txt |
|
|
||||||
| If you did not receive a copy of the PHP license and are unable to |
|
|
||||||
| obtain it through the world-wide-web, please send a note to |
|
|
||||||
| license@php.net so we can mail you a copy immediately. |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Authors: Christian Stocker <chregu@php.net> |
|
|
||||||
| Rob Richards <rrichards@php.net> |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "php.h"
|
|
||||||
#if HAVE_LIBXML && HAVE_DOM
|
|
||||||
#include "php_dom.h"
|
|
||||||
|
|
||||||
/* {{{ arginfo */
|
|
||||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_namelist_get_name, 0, 0, 1)
|
|
||||||
ZEND_ARG_INFO(0, index)
|
|
||||||
ZEND_END_ARG_INFO();
|
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_namelist_get_namespace_uri, 0, 0, 1)
|
|
||||||
ZEND_ARG_INFO(0, index)
|
|
||||||
ZEND_END_ARG_INFO();
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* class DOMNameList
|
|
||||||
*
|
|
||||||
* URL: https://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList
|
|
||||||
* Since: DOM Level 3
|
|
||||||
*/
|
|
||||||
|
|
||||||
const zend_function_entry php_dom_namelist_class_functions[] = {
|
|
||||||
PHP_FALIAS(getName, dom_namelist_get_name, arginfo_dom_namelist_get_name)
|
|
||||||
PHP_FALIAS(getNamespaceURI, dom_namelist_get_namespace_uri, arginfo_dom_namelist_get_namespace_uri)
|
|
||||||
PHP_FE_END
|
|
||||||
};
|
|
||||||
|
|
||||||
/* {{{ length int
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-length
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_namelist_length_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_STRING(retval, "TEST");
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ proto string dom_namelist_get_name(int index);
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-getName
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
PHP_FUNCTION(dom_namelist_get_name)
|
|
||||||
{
|
|
||||||
DOM_NOT_IMPLEMENTED();
|
|
||||||
}
|
|
||||||
/* }}} end dom_namelist_get_name */
|
|
||||||
|
|
||||||
/* {{{ proto string dom_namelist_get_namespace_uri(int index);
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-getNamespaceURI
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
PHP_FUNCTION(dom_namelist_get_namespace_uri)
|
|
||||||
{
|
|
||||||
DOM_NOT_IMPLEMENTED();
|
|
||||||
}
|
|
||||||
/* }}} end dom_namelist_get_namespace_uri */
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -37,9 +37,6 @@
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_node_class_entry;
|
PHP_DOM_EXPORT zend_class_entry *dom_node_class_entry;
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_domexception_class_entry;
|
PHP_DOM_EXPORT zend_class_entry *dom_domexception_class_entry;
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_domstringlist_class_entry;
|
PHP_DOM_EXPORT zend_class_entry *dom_domstringlist_class_entry;
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_namelist_class_entry;
|
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_domimplementationlist_class_entry;
|
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_domimplementationsource_class_entry;
|
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_domimplementation_class_entry;
|
PHP_DOM_EXPORT zend_class_entry *dom_domimplementation_class_entry;
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_documentfragment_class_entry;
|
PHP_DOM_EXPORT zend_class_entry *dom_documentfragment_class_entry;
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_document_class_entry;
|
PHP_DOM_EXPORT zend_class_entry *dom_document_class_entry;
|
||||||
|
@ -50,12 +47,6 @@ PHP_DOM_EXPORT zend_class_entry *dom_attr_class_entry;
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_element_class_entry;
|
PHP_DOM_EXPORT zend_class_entry *dom_element_class_entry;
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_text_class_entry;
|
PHP_DOM_EXPORT zend_class_entry *dom_text_class_entry;
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_comment_class_entry;
|
PHP_DOM_EXPORT zend_class_entry *dom_comment_class_entry;
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_typeinfo_class_entry;
|
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_userdatahandler_class_entry;
|
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_domerror_class_entry;
|
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_domerrorhandler_class_entry;
|
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_domlocator_class_entry;
|
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_domconfiguration_class_entry;
|
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_cdatasection_class_entry;
|
PHP_DOM_EXPORT zend_class_entry *dom_cdatasection_class_entry;
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_documenttype_class_entry;
|
PHP_DOM_EXPORT zend_class_entry *dom_documenttype_class_entry;
|
||||||
PHP_DOM_EXPORT zend_class_entry *dom_notation_class_entry;
|
PHP_DOM_EXPORT zend_class_entry *dom_notation_class_entry;
|
||||||
|
@ -78,8 +69,6 @@ zend_object_handlers dom_xpath_object_handlers;
|
||||||
static HashTable classes;
|
static HashTable classes;
|
||||||
/* {{{ prop handler tables */
|
/* {{{ prop handler tables */
|
||||||
static HashTable dom_domstringlist_prop_handlers;
|
static HashTable dom_domstringlist_prop_handlers;
|
||||||
static HashTable dom_namelist_prop_handlers;
|
|
||||||
static HashTable dom_domimplementationlist_prop_handlers;
|
|
||||||
static HashTable dom_document_prop_handlers;
|
static HashTable dom_document_prop_handlers;
|
||||||
static HashTable dom_node_prop_handlers;
|
static HashTable dom_node_prop_handlers;
|
||||||
static HashTable dom_nodelist_prop_handlers;
|
static HashTable dom_nodelist_prop_handlers;
|
||||||
|
@ -88,9 +77,6 @@ static HashTable dom_characterdata_prop_handlers;
|
||||||
static HashTable dom_attr_prop_handlers;
|
static HashTable dom_attr_prop_handlers;
|
||||||
static HashTable dom_element_prop_handlers;
|
static HashTable dom_element_prop_handlers;
|
||||||
static HashTable dom_text_prop_handlers;
|
static HashTable dom_text_prop_handlers;
|
||||||
static HashTable dom_typeinfo_prop_handlers;
|
|
||||||
static HashTable dom_domerror_prop_handlers;
|
|
||||||
static HashTable dom_domlocator_prop_handlers;
|
|
||||||
static HashTable dom_documenttype_prop_handlers;
|
static HashTable dom_documenttype_prop_handlers;
|
||||||
static HashTable dom_notation_prop_handlers;
|
static HashTable dom_notation_prop_handlers;
|
||||||
static HashTable dom_entity_prop_handlers;
|
static HashTable dom_entity_prop_handlers;
|
||||||
|
@ -615,19 +601,6 @@ PHP_MINIT_FUNCTION(dom)
|
||||||
dom_register_prop_handler(&dom_domstringlist_prop_handlers, "length", sizeof("length")-1, dom_domstringlist_length_read, NULL);
|
dom_register_prop_handler(&dom_domstringlist_prop_handlers, "length", sizeof("length")-1, dom_domstringlist_length_read, NULL);
|
||||||
zend_hash_add_ptr(&classes, ce.name, &dom_domstringlist_prop_handlers);
|
zend_hash_add_ptr(&classes, ce.name, &dom_domstringlist_prop_handlers);
|
||||||
|
|
||||||
REGISTER_DOM_CLASS(ce, "DOMNameList", NULL, php_dom_namelist_class_functions, dom_namelist_class_entry);
|
|
||||||
|
|
||||||
zend_hash_init(&dom_namelist_prop_handlers, 0, NULL, dom_dtor_prop_handler, 1);
|
|
||||||
dom_register_prop_handler(&dom_namelist_prop_handlers, "length", sizeof("length")-1, dom_namelist_length_read, NULL);
|
|
||||||
zend_hash_add_ptr(&classes, ce.name, &dom_namelist_prop_handlers);
|
|
||||||
|
|
||||||
REGISTER_DOM_CLASS(ce, "DOMImplementationList", NULL, php_dom_domimplementationlist_class_functions, dom_domimplementationlist_class_entry);
|
|
||||||
|
|
||||||
zend_hash_init(&dom_domimplementationlist_prop_handlers, 0, NULL, dom_dtor_prop_handler, 1);
|
|
||||||
dom_register_prop_handler(&dom_domimplementationlist_prop_handlers, "length", sizeof("length")-1, dom_domimplementationlist_length_read, NULL);
|
|
||||||
zend_hash_add_ptr(&classes, ce.name, &dom_domimplementationlist_prop_handlers);
|
|
||||||
|
|
||||||
REGISTER_DOM_CLASS(ce, "DOMImplementationSource", NULL, php_dom_domimplementationsource_class_functions, dom_domimplementationsource_class_entry);
|
|
||||||
REGISTER_DOM_CLASS(ce, "DOMImplementation", NULL, php_dom_domimplementation_class_functions, dom_domimplementation_class_entry);
|
REGISTER_DOM_CLASS(ce, "DOMImplementation", NULL, php_dom_domimplementation_class_functions, dom_domimplementation_class_entry);
|
||||||
|
|
||||||
REGISTER_DOM_CLASS(ce, "DOMNode", NULL, php_dom_node_class_functions, dom_node_class_entry);
|
REGISTER_DOM_CLASS(ce, "DOMNode", NULL, php_dom_node_class_functions, dom_node_class_entry);
|
||||||
|
@ -749,37 +722,6 @@ PHP_MINIT_FUNCTION(dom)
|
||||||
REGISTER_DOM_CLASS(ce, "DOMComment", dom_characterdata_class_entry, php_dom_comment_class_functions, dom_comment_class_entry);
|
REGISTER_DOM_CLASS(ce, "DOMComment", dom_characterdata_class_entry, php_dom_comment_class_functions, dom_comment_class_entry);
|
||||||
zend_hash_add_ptr(&classes, ce.name, &dom_characterdata_prop_handlers);
|
zend_hash_add_ptr(&classes, ce.name, &dom_characterdata_prop_handlers);
|
||||||
|
|
||||||
REGISTER_DOM_CLASS(ce, "DOMTypeinfo", NULL, php_dom_typeinfo_class_functions, dom_typeinfo_class_entry);
|
|
||||||
|
|
||||||
zend_hash_init(&dom_typeinfo_prop_handlers, 0, NULL, dom_dtor_prop_handler, 1);
|
|
||||||
dom_register_prop_handler(&dom_typeinfo_prop_handlers, "typeName", sizeof("typeName")-1, dom_typeinfo_type_name_read, NULL);
|
|
||||||
dom_register_prop_handler(&dom_typeinfo_prop_handlers, "typeNamespace", sizeof("typeNamespace")-1, dom_typeinfo_type_namespace_read, NULL);
|
|
||||||
zend_hash_add_ptr(&classes, ce.name, &dom_typeinfo_prop_handlers);
|
|
||||||
|
|
||||||
REGISTER_DOM_CLASS(ce, "DOMUserDataHandler", NULL, php_dom_userdatahandler_class_functions, dom_userdatahandler_class_entry);
|
|
||||||
REGISTER_DOM_CLASS(ce, "DOMDomError", NULL, php_dom_domerror_class_functions, dom_domerror_class_entry);
|
|
||||||
|
|
||||||
zend_hash_init(&dom_domerror_prop_handlers, 0, NULL, dom_dtor_prop_handler, 1);
|
|
||||||
dom_register_prop_handler(&dom_domerror_prop_handlers, "severity", sizeof("severity")-1, dom_domerror_severity_read, NULL);
|
|
||||||
dom_register_prop_handler(&dom_domerror_prop_handlers, "message", sizeof("message")-1, dom_domerror_message_read, NULL);
|
|
||||||
dom_register_prop_handler(&dom_domerror_prop_handlers, "type", sizeof("type")-1, dom_domerror_type_read, NULL);
|
|
||||||
dom_register_prop_handler(&dom_domerror_prop_handlers, "relatedException", sizeof("relatedException")-1, dom_domerror_related_exception_read, NULL);
|
|
||||||
dom_register_prop_handler(&dom_domerror_prop_handlers, "related_data", sizeof("related_data")-1, dom_domerror_related_data_read, NULL);
|
|
||||||
dom_register_prop_handler(&dom_domerror_prop_handlers, "location", sizeof("location")-1, dom_domerror_location_read, NULL);
|
|
||||||
zend_hash_add_ptr(&classes, ce.name, &dom_domerror_prop_handlers);
|
|
||||||
|
|
||||||
REGISTER_DOM_CLASS(ce, "DOMErrorHandler", NULL, php_dom_domerrorhandler_class_functions, dom_domerrorhandler_class_entry);
|
|
||||||
REGISTER_DOM_CLASS(ce, "DOMLocator", NULL, php_dom_domlocator_class_functions, dom_domlocator_class_entry);
|
|
||||||
|
|
||||||
zend_hash_init(&dom_domlocator_prop_handlers, 0, NULL, dom_dtor_prop_handler, 1);
|
|
||||||
dom_register_prop_handler(&dom_domlocator_prop_handlers, "lineNumber", sizeof("lineNumber")-1, dom_domlocator_line_number_read, NULL);
|
|
||||||
dom_register_prop_handler(&dom_domlocator_prop_handlers, "columnNumber", sizeof("columnNumber")-1, dom_domlocator_column_number_read, NULL);
|
|
||||||
dom_register_prop_handler(&dom_domlocator_prop_handlers, "offset", sizeof("offset")-1, dom_domlocator_offset_read, NULL);
|
|
||||||
dom_register_prop_handler(&dom_domlocator_prop_handlers, "relatedNode", sizeof("relatedNode")-1, dom_domlocator_related_node_read, NULL);
|
|
||||||
dom_register_prop_handler(&dom_domlocator_prop_handlers, "uri", sizeof("uri")-1, dom_domlocator_uri_read, NULL);
|
|
||||||
zend_hash_add_ptr(&classes, ce.name, &dom_domlocator_prop_handlers);
|
|
||||||
|
|
||||||
REGISTER_DOM_CLASS(ce, "DOMConfiguration", NULL, php_dom_domconfiguration_class_functions, dom_domconfiguration_class_entry);
|
|
||||||
REGISTER_DOM_CLASS(ce, "DOMCdataSection", dom_text_class_entry, php_dom_cdatasection_class_functions, dom_cdatasection_class_entry);
|
REGISTER_DOM_CLASS(ce, "DOMCdataSection", dom_text_class_entry, php_dom_cdatasection_class_functions, dom_cdatasection_class_entry);
|
||||||
zend_hash_add_ptr(&classes, ce.name, &dom_text_prop_handlers);
|
zend_hash_add_ptr(&classes, ce.name, &dom_text_prop_handlers);
|
||||||
|
|
||||||
|
@ -926,8 +868,6 @@ PHP_MINFO_FUNCTION(dom)
|
||||||
PHP_MSHUTDOWN_FUNCTION(dom) /* {{{ */
|
PHP_MSHUTDOWN_FUNCTION(dom) /* {{{ */
|
||||||
{
|
{
|
||||||
zend_hash_destroy(&dom_domstringlist_prop_handlers);
|
zend_hash_destroy(&dom_domstringlist_prop_handlers);
|
||||||
zend_hash_destroy(&dom_namelist_prop_handlers);
|
|
||||||
zend_hash_destroy(&dom_domimplementationlist_prop_handlers);
|
|
||||||
zend_hash_destroy(&dom_document_prop_handlers);
|
zend_hash_destroy(&dom_document_prop_handlers);
|
||||||
zend_hash_destroy(&dom_node_prop_handlers);
|
zend_hash_destroy(&dom_node_prop_handlers);
|
||||||
zend_hash_destroy(&dom_namespace_node_prop_handlers);
|
zend_hash_destroy(&dom_namespace_node_prop_handlers);
|
||||||
|
@ -937,9 +877,6 @@ PHP_MSHUTDOWN_FUNCTION(dom) /* {{{ */
|
||||||
zend_hash_destroy(&dom_attr_prop_handlers);
|
zend_hash_destroy(&dom_attr_prop_handlers);
|
||||||
zend_hash_destroy(&dom_element_prop_handlers);
|
zend_hash_destroy(&dom_element_prop_handlers);
|
||||||
zend_hash_destroy(&dom_text_prop_handlers);
|
zend_hash_destroy(&dom_text_prop_handlers);
|
||||||
zend_hash_destroy(&dom_typeinfo_prop_handlers);
|
|
||||||
zend_hash_destroy(&dom_domerror_prop_handlers);
|
|
||||||
zend_hash_destroy(&dom_domlocator_prop_handlers);
|
|
||||||
zend_hash_destroy(&dom_documenttype_prop_handlers);
|
zend_hash_destroy(&dom_documenttype_prop_handlers);
|
||||||
zend_hash_destroy(&dom_notation_prop_handlers);
|
zend_hash_destroy(&dom_notation_prop_handlers);
|
||||||
zend_hash_destroy(&dom_entity_prop_handlers);
|
zend_hash_destroy(&dom_entity_prop_handlers);
|
||||||
|
|
|
@ -1,70 +0,0 @@
|
||||||
/*
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| PHP Version 7 |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Copyright (c) The PHP Group |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| This source file is subject to version 3.01 of the PHP license, |
|
|
||||||
| that is bundled with this package in the file LICENSE, and is |
|
|
||||||
| available through the world-wide-web at the following url: |
|
|
||||||
| http://www.php.net/license/3_01.txt |
|
|
||||||
| If you did not receive a copy of the PHP license and are unable to |
|
|
||||||
| obtain it through the world-wide-web, please send a note to |
|
|
||||||
| license@php.net so we can mail you a copy immediately. |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Authors: Christian Stocker <chregu@php.net> |
|
|
||||||
| Rob Richards <rrichards@php.net> |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "php.h"
|
|
||||||
#if HAVE_LIBXML && HAVE_DOM
|
|
||||||
#include "php_dom.h"
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* class domtypeinfo
|
|
||||||
*
|
|
||||||
* URL: https://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#TypeInfo
|
|
||||||
* Since: DOM Level 3
|
|
||||||
*/
|
|
||||||
|
|
||||||
const zend_function_entry php_dom_typeinfo_class_functions[] = {
|
|
||||||
PHP_FE_END
|
|
||||||
};
|
|
||||||
|
|
||||||
/* {{{ attribute protos, not implemented yet */
|
|
||||||
|
|
||||||
/* {{{ type_name string
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#TypeInfo-typeName
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_typeinfo_type_name_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_NULL(retval);
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ type_namespace string
|
|
||||||
readonly=yes
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#TypeInfo-typeNamespace
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
int dom_typeinfo_type_namespace_read(dom_object *obj, zval *retval)
|
|
||||||
{
|
|
||||||
ZVAL_NULL(retval);
|
|
||||||
return SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,55 +0,0 @@
|
||||||
/*
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| PHP Version 7 |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Copyright (c) The PHP Group |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| This source file is subject to version 3.01 of the PHP license, |
|
|
||||||
| that is bundled with this package in the file LICENSE, and is |
|
|
||||||
| available through the world-wide-web at the following url: |
|
|
||||||
| http://www.php.net/license/3_01.txt |
|
|
||||||
| If you did not receive a copy of the PHP license and are unable to |
|
|
||||||
| obtain it through the world-wide-web, please send a note to |
|
|
||||||
| license@php.net so we can mail you a copy immediately. |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
| Authors: Christian Stocker <chregu@php.net> |
|
|
||||||
| Rob Richards <rrichards@php.net> |
|
|
||||||
+----------------------------------------------------------------------+
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "php.h"
|
|
||||||
#if HAVE_LIBXML && HAVE_DOM
|
|
||||||
#include "php_dom.h"
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* class domuserdatahandler
|
|
||||||
*
|
|
||||||
* URL: https://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#UserDataHandler
|
|
||||||
* Since: DOM Level 3
|
|
||||||
*/
|
|
||||||
|
|
||||||
const zend_function_entry php_dom_userdatahandler_class_functions[] = {
|
|
||||||
PHP_FALIAS(handle, dom_userdatahandler_handle, NULL)
|
|
||||||
PHP_FE_END
|
|
||||||
};
|
|
||||||
|
|
||||||
/* {{{ attribute protos, not implemented yet */
|
|
||||||
|
|
||||||
/* {{{ proto dom_void dom_userdatahandler_handle(short operation, string key, domobject data, node src, node dst);
|
|
||||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-handleUserDataEvent
|
|
||||||
Since:
|
|
||||||
*/
|
|
||||||
PHP_FUNCTION(dom_userdatahandler_handle)
|
|
||||||
{
|
|
||||||
DOM_NOT_IMPLEMENTED();
|
|
||||||
}
|
|
||||||
/* }}} end dom_userdatahandler_handle */
|
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
Add table
Add a link
Reference in a new issue