summaryrefslogtreecommitdiff
path: root/ext/dom/xml_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/xml_common.h')
-rw-r--r--ext/dom/xml_common.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/ext/dom/xml_common.h b/ext/dom/xml_common.h
index 35536a2bf5..6f51fecace 100644
--- a/ext/dom/xml_common.h
+++ b/ext/dom/xml_common.h
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2018 The PHP Group |
+ | 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 |
@@ -84,22 +84,10 @@ PHP_DOM_EXPORT xmlNodePtr dom_object_get_node(dom_object *obj);
*ret = php_dom_create_object(obj, return_value, domobject)
#define DOM_GET_THIS(zval) \
- if (NULL == (zval = getThis())) { \
- php_error_docref(NULL, E_WARNING, "Underlying object missing"); \
- RETURN_FALSE; \
- }
+ do { zval = ZEND_THIS; } while (0)
#define DOM_GET_THIS_OBJ(__ptr, __id, __prtype, __intern) \
DOM_GET_THIS(__id); \
DOM_GET_OBJ(__ptr, __id, __prtype, __intern);
#endif
-
-/*
- * Local variables:
- * tab-width: 4
- * c-basic-offset: 4
- * End:
- * vim600: noet sw=4 ts=4 fdm=marker
- * vim<600: noet sw=4 ts=4
- */