diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2014-09-19 15:41:01 +0400 | 
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2014-09-19 15:41:01 +0400 | 
| commit | 3bc8a958c5ec647adbe409ee6411ae7ed6a3dc3b (patch) | |
| tree | fb2c0e55eacad99b2dbd7e8fbe0137a861714ce7 /ext/json | |
| parent | 3ec7c2808420ad58145d6c6b5aeb1293e81ae12b (diff) | |
| download | php-git-3bc8a958c5ec647adbe409ee6411ae7ed6a3dc3b.tar.gz | |
Fixed useless or duplicated IS_INTERNED() checks
Diffstat (limited to 'ext/json')
| -rw-r--r-- | ext/json/json.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/json.c b/ext/json/json.c index 24324bbe99..2b35c00041 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -789,7 +789,7 @@ static PHP_FUNCTION(json_encode)  		ZVAL_FALSE(return_value);  	} else {  		smart_str_0(&buf); /* copy? */ -		ZVAL_STR(return_value, buf.s); +		ZVAL_NEW_STR(return_value, buf.s);  	}  }  /* }}} */  | 
