com php-src: fix bad cast: ext/standard/php_fopen_wrapper .c
| From: | Michael Wallner | Date: | Tue, 08 Oct 2013 09:16:53 +0000 |
| Subject: | com php-src: fix bad cast: ext/standard/php_fopen_wrapper .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73375@lists.php.net to get a copy of this message | ||
Commit: 5d430ad90257e353321789d9dfe529554028ff6e
Author: Michael Wallner <mike@php.net> Tue, 8 Oct 2013 11:16:53 +0200
Parents: b15765412aebb6b158465f26d8eedb85737862d8
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5d430ad90257e353321789d9dfe529554028ff6e
Log:
fix bad cast
Changed paths:
M ext/standard/php_fopen_wrapper.c
Diff:
diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c
index 76f77eb..0adb1e0 100644
--- a/ext/standard/php_fopen_wrapper.c
+++ b/ext/standard/php_fopen_wrapper.c
@@ -120,11 +120,11 @@ static int php_stream_input_flush(php_stream *stream TSRMLS_DC) /* {{{ */
static int php_stream_input_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset
TSRMLS_DC) /* {{{ */
{
- php_stream *inner = stream->abstract;
+ php_stream_input_t *input = stream->abstract;
- if (inner) {
- int sought = php_stream_seek(inner, offset, whence);
- *newoffset = inner->position;
+ if (*input->body_ptr) {
+ int sought = php_stream_seek(*input->body_ptr, offset, whence);
+ *newoffset = (*input->body_ptr)->position;
return sought;
}