mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
Fix typo in php_stream_from_res_no_verify
This macro is not used but it's wrong as zend_fetch_resource accepts only 3 args and just one res index. So obviously we need to use zend_fetch_resource2 here.
This commit is contained in:
parent
4424cbf757
commit
e6e77d9e27
@ -267,7 +267,7 @@ END_EXTERN_C()
|
|||||||
RETURN_FALSE; \
|
RETURN_FALSE; \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
#define php_stream_from_res_no_verify(xstr, pzval) (xstr) = (php_stream*)zend_fetch_resource((res), "stream", php_file_le_stream(), php_file_le_pstream())
|
#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())
|
||||||
#define php_stream_from_zval_no_verify(xstr, pzval) (xstr) = (php_stream*)zend_fetch_resource2_ex((pzval), "stream", 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", php_file_le_stream(), php_file_le_pstream())
|
||||||
|
|
||||||
BEGIN_EXTERN_C()
|
BEGIN_EXTERN_C()
|
||||||
|
Loading…
Reference in New Issue
Block a user