mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,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", 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())
|
||||
|
||||
BEGIN_EXTERN_C()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue