From: Dmitry Stogov Date: Thu, 9 Oct 2014 14:34:19 +0000 (+0400) Subject: zval must not be converted in place without duplication X-Git-Tag: POST_NATIVE_TLS_MERGE^2~76^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f099478a3c5509e4063002b3256bde380739e3d;p=php zval must not be converted in place without duplication --- diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index 111b4fa568..cfe6b1232b 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -1546,8 +1546,7 @@ xmlNsPtr dom_get_nsdecl(xmlNode *node, xmlChar *localName) { static int dom_nodelist_fetch_dimension(xmlNodePtr *itemnode, zval *offset, dom_nnodemap_object *objmap, zval *rv TSRMLS_DC) /* {{{ */ { - convert_to_long(offset); - long index = Z_LVAL_P(offset); + long index = zval_get_long(offset); HashTable *nodeht; int ret = 0;