summaryrefslogtreecommitdiff
path: root/main/php_streams.h
diff options
context:
space:
mode:
authorMichael Wallner <mike@php.net>2013-08-14 14:42:36 +0200
committerMichael Wallner <mike@php.net>2013-08-27 13:43:22 +0200
commitbb1f9d3826c968ce0c099598ded6f646b3da6429 (patch)
tree22f88cf937d8909ef099797198b6ccb114cffa57 /main/php_streams.h
parenta13c00cd14179971efd60e8acb450a615c2aff22 (diff)
downloadphp-git-bb1f9d3826c968ce0c099598ded6f646b3da6429.tar.gz
slim post data
Diffstat (limited to 'main/php_streams.h')
-rw-r--r--main/php_streams.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_streams.h b/main/php_streams.h
index c56014c62e..c9732b4848 100644
--- a/main/php_streams.h
+++ b/main/php_streams.h
@@ -242,7 +242,7 @@ PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract,
END_EXTERN_C()
#define php_stream_alloc(ops, thisptr, persistent_id, mode) _php_stream_alloc((ops), (thisptr), (persistent_id), (mode) STREAMS_CC TSRMLS_CC)
-#define php_stream_get_resource_id(stream) (stream)->rsrc_id
+#define php_stream_get_resource_id(stream) ((php_stream *)(stream))->rsrc_id
#if ZEND_DEBUG
/* 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++; }