Commit:    5d430ad90257e353321789d9dfe529554028ff6e
Author:    Michael Wallner <m...@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;
        }


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to