diff options
author | Wez Furlong <wez@php.net> | 2002-08-11 14:29:01 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-08-11 14:29:01 +0000 |
commit | bcef712ad67a3f4fdd84a46bc96df5c93029fbb0 (patch) | |
tree | f75c01dce3e76a00bf7df604a83514a31ec9c638 /main/php_streams.h | |
parent | f9b6bac2a842f1b9509652e0851aaa404b529e88 (diff) | |
download | php-git-bcef712ad67a3f4fdd84a46bc96df5c93029fbb0.tar.gz |
Properly implement TSRM parameters to the new log_error
function... (Thanks Marcus!)
Add a convenience macro for importing a stream from a zval.
Diffstat (limited to 'main/php_streams.h')
-rwxr-xr-x | main/php_streams.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/php_streams.h b/main/php_streams.h index 160d733931..7791ad59de 100755 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -226,6 +226,8 @@ PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract, # define php_stream_to_zval(stream, zval) { ZVAL_RESOURCE(zval, (stream)->rsrc_id); } #endif +#define php_stream_from_zval(stream, ppzval) ZEND_FETCH_RESOURCE((stream), php_stream *, (ppzval), -1, "stream", php_file_le_stream()) + #define PHP_STREAM_FREE_CALL_DTOR 1 /* call ops->close */ #define PHP_STREAM_FREE_RELEASE_STREAM 2 /* pefree(stream) */ #define PHP_STREAM_FREE_PRESERVE_HANDLE 4 /* tell ops->close to not close it's underlying handle */ |