diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-05-15 13:44:13 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-05-15 13:44:13 +0400 |
commit | 55b6fb165693d00e46ff20e04d0160754925b9b3 (patch) | |
tree | 55b0169436fed85d4c4ee778505407c0eebab3d6 /ext/curl/interface.c | |
parent | 154976f711c1b8d008a6114be3d5bd608620b238 (diff) | |
download | php-git-55b6fb165693d00e46ff20e04d0160754925b9b3.tar.gz |
Fixed zend_string/char* mess
Diffstat (limited to 'ext/curl/interface.c')
-rw-r--r-- | ext/curl/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 15e6133fe8..173502877e 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -157,7 +157,7 @@ static void _php_curl_close(zend_resource *rsrc TSRMLS_DC); #define CAAL(s, v) add_assoc_long_ex(return_value, s, sizeof(s) - 1, (long) v); #define CAAD(s, v) add_assoc_double_ex(return_value, s, sizeof(s) - 1, (double) v); #define CAAS(s, v) add_assoc_string_ex(return_value, s, sizeof(s) - 1, (char *) (v ? v : "")); -#define CAASTR(s, v) add_assoc_str_ex(return_value, s, sizeof(s) - 1, v? v : ""); +#define CAASTR(s, v) add_assoc_str_ex(return_value, s, sizeof(s) - 1, v ? v : STR_EMPTY_ALLOC()); #define CAAZ(s, v) add_assoc_zval_ex(return_value, s, sizeof(s) -1 , (zval *) v); #if defined(PHP_WIN32) || defined(__GNUC__) |