com php-src: revert stream cast: main/php_streams.h
| From: | Michael Wallner | Date: | Tue, 10 Sep 2013 11:13:09 +0000 |
| Subject: | com php-src: revert stream cast: main/php_streams.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73235@lists.php.net to get a copy of this message | ||
Commit: e3e4d1b144a818b68e9332e75a35b2870c7253b8
Author: Michael Wallner <mike@php.net> Tue, 10 Sep 2013 13:13:09 +0200
Parents: d4b673a34c873a7d732507ce5f83385acff8a59c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e3e4d1b144a818b68e9332e75a35b2870c7253b8
Log:
revert stream cast
Changed paths:
M main/php_streams.h
Diff:
diff --git a/main/php_streams.h b/main/php_streams.h
index c9732b4..c56014c 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) ((php_stream *)(stream))->rsrc_id
+#define php_stream_get_resource_id(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++; }