com php-src: Fixed smart_str_setl: ext/standard/php_s mart_str.h

From: Date: Sun, 30 Mar 2014 09:50:42 +0000
Subject: com php-src: Fixed smart_str_setl: ext/standard/php_s mart_str.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77519@lists.php.net to get a copy of this message
Commit: 6c16325034b8131529c3d71b3b0edd812a2e0ed8 Author: Xinchen Hui <laruence@gmail.com> Sun, 30 Mar 2014 17:50:42 +0800 Parents: fa2e7ba0cb5230e7fb02da0e0b1726e468f270ce Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6c16325034b8131529c3d71b3b0edd812a2e0ed8 Log: Fixed smart_str_setl Changed paths: M ext/standard/php_smart_str.h Diff: diff --git a/ext/standard/php_smart_str.h b/ext/standard/php_smart_str.h index e11eb73..a518fbf 100644 --- a/ext/standard/php_smart_str.h +++ b/ext/standard/php_smart_str.h @@ -185,8 +185,8 @@ static inline char *smart_str_print_unsigned(char *buf, long num) { smart_str_appendl_ex((dest), ((smart_str *)(src))->s->val, \ ((smart_str *)(src))->s->len, (what)); - #define smart_str_setl(dest, src, nlen) do { \ + smart_str_free((dest)); \ smart_str_appendl_ex((dest), (src), (nlen), 0); \ } while (0)

« previous php.cvs (#77519) next »