diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-04-21 22:36:01 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-04-21 22:36:01 +0400 |
commit | 4ed452c1b5b81f99212594ec7f57475a16372d45 (patch) | |
tree | 4104a7e27992094294b6305ece067ee928bb3007 /ext/dom/document.c | |
parent | 8ad8254a16bd5d3771e72a1a1c0ca3fc9551d43f (diff) | |
download | php-git-4ed452c1b5b81f99212594ec7f57475a16372d45.tar.gz |
Convert zval_get_string() into "fast path" macro and "slow path" function
Diffstat (limited to 'ext/dom/document.c')
-rw-r--r-- | ext/dom/document.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/dom/document.c b/ext/dom/document.c index 35d8348a2d..b1c1dc2737 100644 --- a/ext/dom/document.c +++ b/ext/dom/document.c @@ -338,7 +338,7 @@ int dom_document_encoding_write(dom_object *obj, zval *newval TSRMLS_DC) return FAILURE; } - str = zval_get_string(newval TSRMLS_CC); + str = zval_get_string(newval); handler = xmlFindCharEncodingHandler(Z_STRVAL_P(newval)); @@ -436,7 +436,7 @@ int dom_document_version_write(dom_object *obj, zval *newval TSRMLS_DC) xmlFree((xmlChar *) docp->version ); } - str = zval_get_string(newval TSRMLS_CC); + str = zval_get_string(newval); docp->version = xmlStrdup((const xmlChar *) str->val); @@ -664,7 +664,7 @@ int dom_document_document_uri_write(dom_object *obj, zval *newval TSRMLS_DC) xmlFree((xmlChar *) docp->URL); } - str = zval_get_string(newval TSRMLS_CC); + str = zval_get_string(newval); docp->URL = xmlStrdup((const xmlChar *) str->val); |