diff options
author | Xinchen Hui <laruence@gmail.com> | 2015-02-02 13:56:20 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2015-02-02 13:56:20 +0800 |
commit | 7ec8eb380dd87caa877490d3cd0b1dce41e5187e (patch) | |
tree | 6ae8cd8af0255384f644334d171914892b192d2e /main/php_streams.h | |
parent | 38efb690c0772d6d3bab20a1b1fee383eca1c04d (diff) | |
download | php-git-7ec8eb380dd87caa877490d3cd0b1dce41e5187e.tar.gz |
Use resource directly
Diffstat (limited to 'main/php_streams.h')
-rw-r--r-- | main/php_streams.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/php_streams.h b/main/php_streams.h index 913c4c3bb4..177624df48 100644 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -265,6 +265,7 @@ END_EXTERN_C() RETURN_FALSE; \ } \ } while (0) +#define php_stream_from_res_no_verify(xstr, pzval) (xstr) = (php_stream*)zend_fetch_resource((res), "stream", NULL, php_file_le_stream(), php_file_le_pstream()) #define php_stream_from_zval_no_verify(xstr, pzval) (xstr) = (php_stream*)zend_fetch_resource2_ex((pzval), "stream", NULL, php_file_le_stream(), php_file_le_pstream()) BEGIN_EXTERN_C() |