Created
July 21, 2018 13:20
-
-
Save cmb69/76137ddce3a084c2893faa73be4c038f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOMDocument Object | |
( | |
[doctype] => | |
[implementation] => DOMImplementation Object | |
( | |
) | |
[documentElement] => DOMElement Object | |
( | |
[tagName] => h1 | |
[schemaTypeInfo] => | |
[nodeName] => h1 | |
[nodeValue] => Configuration | |
[nodeType] => 1 | |
[parentNode] => DOMDocument Object | |
*RECURSION* | |
[childNodes] => DOMNodeList Object | |
( | |
[length] => 1 | |
) | |
[firstChild] => DOMText Object | |
( | |
[wholeText] => Configuration | |
[data] => Configuration | |
[length] => 13 | |
[nodeName] => #text | |
[nodeValue] => Configuration | |
[nodeType] => 3 | |
[parentNode] => DOMElement Object | |
*RECURSION* | |
[childNodes] => | |
[firstChild] => | |
[lastChild] => | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => | |
[ownerDocument] => DOMDocument Object | |
*RECURSION* | |
[namespaceURI] => | |
[prefix] => | |
[localName] => | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[lastChild] => DOMText Object | |
( | |
[wholeText] => Configuration | |
[data] => Configuration | |
[length] => 13 | |
[nodeName] => #text | |
[nodeValue] => Configuration | |
[nodeType] => 3 | |
[parentNode] => DOMElement Object | |
*RECURSION* | |
[childNodes] => | |
[firstChild] => | |
[lastChild] => | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => | |
[ownerDocument] => DOMDocument Object | |
*RECURSION* | |
[namespaceURI] => | |
[prefix] => | |
[localName] => | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => DOMNamedNodeMap Object | |
( | |
[length] => 0 | |
) | |
[ownerDocument] => DOMDocument Object | |
*RECURSION* | |
[namespaceURI] => | |
[prefix] => | |
[localName] => h1 | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[actualEncoding] => | |
[encoding] => | |
[xmlEncoding] => | |
[standalone] => 1 | |
[xmlStandalone] => 1 | |
[version] => | |
[xmlVersion] => | |
[strictErrorChecking] => 1 | |
[documentURI] => | |
[config] => | |
[formatOutput] => | |
[validateOnParse] => | |
[resolveExternals] => | |
[preserveWhiteSpace] => 1 | |
[recover] => | |
[substituteEntities] => | |
[nodeName] => #document | |
[nodeValue] => | |
[nodeType] => 13 | |
[parentNode] => | |
[childNodes] => DOMNodeList Object | |
( | |
[length] => 1 | |
) | |
[firstChild] => DOMElement Object | |
( | |
[tagName] => h1 | |
[schemaTypeInfo] => | |
[nodeName] => h1 | |
[nodeValue] => Configuration | |
[nodeType] => 1 | |
[parentNode] => DOMDocument Object | |
*RECURSION* | |
[childNodes] => DOMNodeList Object | |
( | |
[length] => 1 | |
) | |
[firstChild] => DOMText Object | |
( | |
[wholeText] => Configuration | |
[data] => Configuration | |
[length] => 13 | |
[nodeName] => #text | |
[nodeValue] => Configuration | |
[nodeType] => 3 | |
[parentNode] => DOMElement Object | |
*RECURSION* | |
[childNodes] => | |
[firstChild] => | |
[lastChild] => | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => | |
[ownerDocument] => DOMDocument Object | |
*RECURSION* | |
[namespaceURI] => | |
[prefix] => | |
[localName] => | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[lastChild] => DOMText Object | |
( | |
[wholeText] => Configuration | |
[data] => Configuration | |
[length] => 13 | |
[nodeName] => #text | |
[nodeValue] => Configuration | |
[nodeType] => 3 | |
[parentNode] => DOMElement Object | |
*RECURSION* | |
[childNodes] => | |
[firstChild] => | |
[lastChild] => | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => | |
[ownerDocument] => DOMDocument Object | |
*RECURSION* | |
[namespaceURI] => | |
[prefix] => | |
[localName] => | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => DOMNamedNodeMap Object | |
( | |
[length] => 0 | |
) | |
[ownerDocument] => DOMDocument Object | |
*RECURSION* | |
[namespaceURI] => | |
[prefix] => | |
[localName] => h1 | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[lastChild] => DOMElement Object | |
( | |
[tagName] => h1 | |
[schemaTypeInfo] => | |
[nodeName] => h1 | |
[nodeValue] => Configuration | |
[nodeType] => 1 | |
[parentNode] => DOMDocument Object | |
*RECURSION* | |
[childNodes] => DOMNodeList Object | |
( | |
[length] => 1 | |
) | |
[firstChild] => DOMText Object | |
( | |
[wholeText] => Configuration | |
[data] => Configuration | |
[length] => 13 | |
[nodeName] => #text | |
[nodeValue] => Configuration | |
[nodeType] => 3 | |
[parentNode] => DOMElement Object | |
*RECURSION* | |
[childNodes] => | |
[firstChild] => | |
[lastChild] => | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => | |
[ownerDocument] => DOMDocument Object | |
*RECURSION* | |
[namespaceURI] => | |
[prefix] => | |
[localName] => | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[lastChild] => DOMText Object | |
( | |
[wholeText] => Configuration | |
[data] => Configuration | |
[length] => 13 | |
[nodeName] => #text | |
[nodeValue] => Configuration | |
[nodeType] => 3 | |
[parentNode] => DOMElement Object | |
*RECURSION* | |
[childNodes] => | |
[firstChild] => | |
[lastChild] => | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => | |
[ownerDocument] => DOMDocument Object | |
*RECURSION* | |
[namespaceURI] => | |
[prefix] => | |
[localName] => | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => DOMNamedNodeMap Object | |
( | |
[length] => 0 | |
) | |
[ownerDocument] => DOMDocument Object | |
*RECURSION* | |
[namespaceURI] => | |
[prefix] => | |
[localName] => h1 | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => | |
[ownerDocument] => | |
[namespaceURI] => | |
[prefix] => | |
[localName] => | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
DOMElement Object | |
( | |
[tagName] => h1 | |
[schemaTypeInfo] => | |
[nodeName] => h1 | |
[nodeValue] => Configuration | |
[nodeType] => 1 | |
[parentNode] => DOMDocument Object | |
( | |
[doctype] => | |
[implementation] => DOMImplementation Object | |
( | |
) | |
[documentElement] => DOMElement Object | |
*RECURSION* | |
[actualEncoding] => | |
[encoding] => | |
[xmlEncoding] => | |
[standalone] => 1 | |
[xmlStandalone] => 1 | |
[version] => | |
[xmlVersion] => | |
[strictErrorChecking] => 1 | |
[documentURI] => | |
[config] => | |
[formatOutput] => | |
[validateOnParse] => | |
[resolveExternals] => | |
[preserveWhiteSpace] => 1 | |
[recover] => | |
[substituteEntities] => | |
[nodeName] => #document | |
[nodeValue] => | |
[nodeType] => 13 | |
[parentNode] => | |
[childNodes] => DOMNodeList Object | |
( | |
[length] => 1 | |
) | |
[firstChild] => DOMElement Object | |
*RECURSION* | |
[lastChild] => DOMElement Object | |
*RECURSION* | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => | |
[ownerDocument] => | |
[namespaceURI] => | |
[prefix] => | |
[localName] => | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[childNodes] => DOMNodeList Object | |
( | |
[length] => 1 | |
) | |
[firstChild] => DOMText Object | |
( | |
[wholeText] => Configuration | |
[data] => Configuration | |
[length] => 13 | |
[nodeName] => #text | |
[nodeValue] => Configuration | |
[nodeType] => 3 | |
[parentNode] => DOMElement Object | |
*RECURSION* | |
[childNodes] => | |
[firstChild] => | |
[lastChild] => | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => | |
[ownerDocument] => DOMDocument Object | |
( | |
[doctype] => | |
[implementation] => DOMImplementation Object | |
( | |
) | |
[documentElement] => DOMElement Object | |
*RECURSION* | |
[actualEncoding] => | |
[encoding] => | |
[xmlEncoding] => | |
[standalone] => 1 | |
[xmlStandalone] => 1 | |
[version] => | |
[xmlVersion] => | |
[strictErrorChecking] => 1 | |
[documentURI] => | |
[config] => | |
[formatOutput] => | |
[validateOnParse] => | |
[resolveExternals] => | |
[preserveWhiteSpace] => 1 | |
[recover] => | |
[substituteEntities] => | |
[nodeName] => #document | |
[nodeValue] => | |
[nodeType] => 13 | |
[parentNode] => | |
[childNodes] => DOMNodeList Object | |
( | |
[length] => 1 | |
) | |
[firstChild] => DOMElement Object | |
*RECURSION* | |
[lastChild] => DOMElement Object | |
*RECURSION* | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => | |
[ownerDocument] => | |
[namespaceURI] => | |
[prefix] => | |
[localName] => | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[namespaceURI] => | |
[prefix] => | |
[localName] => | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[lastChild] => DOMText Object | |
( | |
[wholeText] => Configuration | |
[data] => Configuration | |
[length] => 13 | |
[nodeName] => #text | |
[nodeValue] => Configuration | |
[nodeType] => 3 | |
[parentNode] => DOMElement Object | |
*RECURSION* | |
[childNodes] => | |
[firstChild] => | |
[lastChild] => | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => | |
[ownerDocument] => DOMDocument Object | |
( | |
[doctype] => | |
[implementation] => DOMImplementation Object | |
( | |
) | |
[documentElement] => DOMElement Object | |
*RECURSION* | |
[actualEncoding] => | |
[encoding] => | |
[xmlEncoding] => | |
[standalone] => 1 | |
[xmlStandalone] => 1 | |
[version] => | |
[xmlVersion] => | |
[strictErrorChecking] => 1 | |
[documentURI] => | |
[config] => | |
[formatOutput] => | |
[validateOnParse] => | |
[resolveExternals] => | |
[preserveWhiteSpace] => 1 | |
[recover] => | |
[substituteEntities] => | |
[nodeName] => #document | |
[nodeValue] => | |
[nodeType] => 13 | |
[parentNode] => | |
[childNodes] => DOMNodeList Object | |
( | |
[length] => 1 | |
) | |
[firstChild] => DOMElement Object | |
*RECURSION* | |
[lastChild] => DOMElement Object | |
*RECURSION* | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => | |
[ownerDocument] => | |
[namespaceURI] => | |
[prefix] => | |
[localName] => | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[namespaceURI] => | |
[prefix] => | |
[localName] => | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => DOMNamedNodeMap Object | |
( | |
[length] => 0 | |
) | |
[ownerDocument] => DOMDocument Object | |
( | |
[doctype] => | |
[implementation] => DOMImplementation Object | |
( | |
) | |
[documentElement] => DOMElement Object | |
*RECURSION* | |
[actualEncoding] => | |
[encoding] => | |
[xmlEncoding] => | |
[standalone] => 1 | |
[xmlStandalone] => 1 | |
[version] => | |
[xmlVersion] => | |
[strictErrorChecking] => 1 | |
[documentURI] => | |
[config] => | |
[formatOutput] => | |
[validateOnParse] => | |
[resolveExternals] => | |
[preserveWhiteSpace] => 1 | |
[recover] => | |
[substituteEntities] => | |
[nodeName] => #document | |
[nodeValue] => | |
[nodeType] => 13 | |
[parentNode] => | |
[childNodes] => DOMNodeList Object | |
( | |
[length] => 1 | |
) | |
[firstChild] => DOMElement Object | |
*RECURSION* | |
[lastChild] => DOMElement Object | |
*RECURSION* | |
[previousSibling] => | |
[nextSibling] => | |
[attributes] => | |
[ownerDocument] => | |
[namespaceURI] => | |
[prefix] => | |
[localName] => | |
[baseURI] => | |
[textContent] => Configuration | |
) | |
[namespaceURI] => | |
[prefix] => | |
[localName] => h1 | |
[baseURI] => | |
[textContent] => Configuration | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ext/dom/php_dom.c | 11 ----------- | |
1 file changed, 11 deletions(-) | |
diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c | |
index 1377c18a12..d1839e22d0 100644 | |
--- a/ext/dom/php_dom.c | |
+++ b/ext/dom/php_dom.c | |
@@ -418,7 +418,6 @@ static HashTable* dom_get_debug_info_helper(zval *object, int *is_temp) /* {{{ * | |
*std_props; | |
zend_string *string_key; | |
dom_prop_handler *entry; | |
- zend_string *object_str; | |
*is_temp = 1; | |
@@ -429,8 +428,6 @@ static HashTable* dom_get_debug_info_helper(zval *object, int *is_temp) /* {{{ * | |
return debug_info; | |
} | |
- object_str = zend_string_init("(object value omitted)", sizeof("(object value omitted)")-1, 0); | |
- | |
ZEND_HASH_FOREACH_STR_KEY_PTR(prop_handlers, string_key, entry) { | |
zval value; | |
@@ -438,17 +435,9 @@ static HashTable* dom_get_debug_info_helper(zval *object, int *is_temp) /* {{{ * | |
continue; | |
} | |
- if (Z_TYPE(value) == IS_OBJECT) { | |
- zval_ptr_dtor(&value); | |
- ZVAL_NEW_STR(&value, object_str); | |
- zend_string_addref(object_str); | |
- } | |
- | |
zend_hash_add(debug_info, string_key, &value); | |
} ZEND_HASH_FOREACH_END(); | |
- zend_string_release_ex(object_str, 0); | |
- | |
return debug_info; | |
} | |
/* }}} */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment