diff options
author | John Coggeshall <john@php.net> | 2004-03-12 16:28:28 +0000 |
---|---|---|
committer | John Coggeshall <john@php.net> | 2004-03-12 16:28:28 +0000 |
commit | 1c7ea2045bf127ea112950d3c96edc2f6c87e821 (patch) | |
tree | 22217aa32c5b9c58984383ba9946994f8bc21495 /ext/curl | |
parent | 4c76273d889315cbe531323c3b32c9ea0f2b272b (diff) | |
download | php-git-1c7ea2045bf127ea112950d3c96edc2f6c87e821.tar.gz |
Opps. Shouldn't look at the value, just the type
Diffstat (limited to 'ext/curl')
-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 0ac818441e..ff250b46d6 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -501,7 +501,7 @@ static size_t curl_read(char *data, size_t size, size_t nmemb, void *ctx) php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot call the CURLOPT_READFUNCTION"); length = -1; } else { - if(Z_STRVAL_P(retval_ptr)) { + if(Z_TYPE_P(retval_ptr) == IS_STRING) { memcpy(data, Z_STRVAL_P(retval_ptr), size * nmemb); length = Z_STRLEN_P(retval_ptr); } else { |