summaryrefslogtreecommitdiff
path: root/main/php_streams.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-09-03 09:25:50 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-09-03 09:25:50 +0200
commit7f78f839dc476b064b1ecdda5d69389673319c2a (patch)
tree6e620684228c83cc21790dd34ac7a71d42b4698f /main/php_streams.h
parent3ac0f42c40779ce513d18028b48632bf947696d9 (diff)
downloadphp-git-7f78f839dc476b064b1ecdda5d69389673319c2a.tar.gz
php_stream_from_zval can no longer return false
Diffstat (limited to 'main/php_streams.h')
-rw-r--r--main/php_streams.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/php_streams.h b/main/php_streams.h
index 11e7c2aae7..b85b6b3c38 100644
--- a/main/php_streams.h
+++ b/main/php_streams.h
@@ -260,13 +260,13 @@ END_EXTERN_C()
#define php_stream_from_zval(xstr, pzval) do { \
if (((xstr) = (php_stream*)zend_fetch_resource2_ex((pzval), \
"stream", php_file_le_stream(), php_file_le_pstream())) == NULL) { \
- RETURN_FALSE; \
+ return; \
} \
} while (0)
#define php_stream_from_res(xstr, res) do { \
if (((xstr) = (php_stream*)zend_fetch_resource2((res), \
"stream", php_file_le_stream(), php_file_le_pstream())) == NULL) { \
- RETURN_FALSE; \
+ return; \
} \
} while (0)
#define php_stream_from_res_no_verify(xstr, pzval) (xstr) = (php_stream*)zend_fetch_resource2((res), "stream", php_file_le_stream(), php_file_le_pstream())