mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
handle the stream->__exposed flag correctly
as it's a flag now, just set the value
This commit is contained in:
parent
269707f2f6
commit
1e986c709c
1 changed files with 2 additions and 2 deletions
|
@ -253,11 +253,11 @@ END_EXTERN_C()
|
|||
|
||||
#define php_stream_get_resource_id(stream) ((php_stream *)(stream))->res->handle
|
||||
/* use this to tell the stream that it is OK if we don't explicitly close it */
|
||||
#define php_stream_auto_cleanup(stream) { (stream)->__exposed++; }
|
||||
#define php_stream_auto_cleanup(stream) { (stream)->__exposed = 1; }
|
||||
/* use this to assign the stream to a zval and tell the stream that is
|
||||
* has been exported to the engine; it will expect to be closed automatically
|
||||
* when the resources are auto-destructed */
|
||||
#define php_stream_to_zval(stream, zval) { ZVAL_RES(zval, (stream)->res); (stream)->__exposed++; }
|
||||
#define php_stream_to_zval(stream, zval) { ZVAL_RES(zval, (stream)->res); (stream)->__exposed = 1; }
|
||||
|
||||
#define php_stream_from_zval(xstr, pzval) do { \
|
||||
if (((xstr) = (php_stream*)zend_fetch_resource2_ex((pzval), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue