domerror.c 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 7 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2018 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.01 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available through the world-wide-web at the following url: |
  10. | http://www.php.net/license/3_01.txt |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Authors: Christian Stocker <chregu@php.net> |
  16. | Rob Richards <rrichards@php.net> |
  17. +----------------------------------------------------------------------+
  18. */
  19. #ifdef HAVE_CONFIG_H
  20. #include "config.h"
  21. #endif
  22. #include "php.h"
  23. #if HAVE_LIBXML && HAVE_DOM
  24. #include "php_dom.h"
  25. /*
  26. * class domerror
  27. *
  28. * URL: https://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-Interfaces-DOMError
  29. * Since: DOM Level 3
  30. */
  31. const zend_function_entry php_dom_domerror_class_functions[] = {
  32. PHP_FE_END
  33. };
  34. /* {{{ attribute protos, not implemented yet */
  35. /* {{{ severity unsigned short
  36. readonly=yes
  37. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-severity
  38. Since:
  39. */
  40. int dom_domerror_severity_read(dom_object *obj, zval *retval)
  41. {
  42. ZVAL_STRING(retval, "TEST");
  43. return SUCCESS;
  44. }
  45. /* }}} */
  46. /* {{{ message string
  47. readonly=yes
  48. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-message
  49. Since:
  50. */
  51. int dom_domerror_message_read(dom_object *obj, zval *retval)
  52. {
  53. ZVAL_STRING(retval, "TEST");
  54. return SUCCESS;
  55. }
  56. /* }}} */
  57. /* {{{ type string
  58. readonly=yes
  59. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-type
  60. Since:
  61. */
  62. int dom_domerror_type_read(dom_object *obj, zval *retval)
  63. {
  64. ZVAL_STRING(retval, "TEST");
  65. return SUCCESS;
  66. }
  67. /* }}} */
  68. /* {{{ relatedException object
  69. readonly=yes
  70. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-relatedException
  71. Since:
  72. */
  73. int dom_domerror_related_exception_read(dom_object *obj, zval *retval)
  74. {
  75. ZVAL_STRING(retval, "TEST");
  76. return SUCCESS;
  77. }
  78. /* }}} */
  79. /* {{{ relatedData domobject
  80. readonly=yes
  81. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-relatedData
  82. Since:
  83. */
  84. int dom_domerror_related_data_read(dom_object *obj, zval *retval)
  85. {
  86. ZVAL_STRING(retval, "TEST");
  87. return SUCCESS;
  88. }
  89. /* }}} */
  90. /* {{{ location domlocator
  91. readonly=yes
  92. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-location
  93. Since:
  94. */
  95. int dom_domerror_location_read(dom_object *obj, zval *retval)
  96. {
  97. ZVAL_STRING(retval, "TEST");
  98. return SUCCESS;
  99. }
  100. /* }}} */
  101. /* }}} */
  102. #endif
  103. /*
  104. * Local variables:
  105. * tab-width: 4
  106. * c-basic-offset: 4
  107. * End:
  108. * vim600: noet sw=4 ts=4 fdm=marker
  109. * vim<600: noet sw=4 ts=4
  110. */