summaryrefslogtreecommitdiff
path: root/ext/curl/curl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/curl/curl.c')
-rw-r--r--ext/curl/curl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curl/curl.c b/ext/curl/curl.c
index 82a707139a..83c3739e5b 100644
--- a/ext/curl/curl.c
+++ b/ext/curl/curl.c
@@ -705,7 +705,7 @@ PHP_FUNCTION(curl_setopt)
what = zend_fetch_resource(zvalue TSRMLS_CC, -1, "File-Handle", &type, 1, php_file_le_stream());
ZEND_VERIFY_RESOURCE(what);
- if (!php_stream_cast((php_stream*)what, PHP_STREAM_AS_STDIO, (void*)&fp, REPORT_ERRORS))
+ if (FAILURE == php_stream_cast((php_stream*)what, PHP_STREAM_AS_STDIO, (void*)&fp, REPORT_ERRORS))
RETURN_FALSE;
if (!fp) {
RETURN_FALSE;