diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2014-02-13 17:54:23 +0400 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2014-02-13 17:54:23 +0400 |
| commit | 40e053e7f333b5fc3f4c75c964600666810cc969 (patch) | |
| tree | 3436d014c44e3eab00107e67b10229ec0262dbb6 /main/php_streams.h | |
| parent | 6306918ed2c9d87cf5fadc62d210a797a794926e (diff) | |
| download | php-git-40e053e7f333b5fc3f4c75c964600666810cc969.tar.gz | |
Use better data structures (incomplete)
Diffstat (limited to 'main/php_streams.h')
| -rw-r--r-- | main/php_streams.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/php_streams.h b/main/php_streams.h index f3e887fade..f434e6db75 100644 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -249,10 +249,10 @@ END_EXTERN_C() /* 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_RESOURCE(zval, (stream)->res); (stream)->__exposed++; } +# define php_stream_to_zval(stream, zval) { ZVAL_RES(zval, (stream)->res); (stream)->__exposed++; } #else # define php_stream_auto_cleanup(stream) /* nothing */ -# define php_stream_to_zval(stream, zval) { ZVAL_RESOURCE(zval, (stream)->res); } +# define php_stream_to_zval(stream, zval) { ZVAL_RES(zval, (stream)->res); } #endif #define php_stream_from_zval(xstr, ppzval) ZEND_FETCH_RESOURCE2((xstr), php_stream *, (ppzval), -1, "stream", php_file_le_stream(), php_file_le_pstream()) |
