summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2011-01-13 12:56:28 +0000
committerIlia Alshanetsky <iliaa@php.net>2011-01-13 12:56:28 +0000
commitc33795b25b5d4206f6d0a358e788301bd199698f (patch)
treec88c96e7c2c63fd8c362e3a341b92e151d937818
parent9acdcd93a7289a0eade34e5294200a47c7d310dd (diff)
downloadphp-git-c33795b25b5d4206f6d0a358e788301bd199698f.tar.gz
Fixed variable re-declaration
-rw-r--r--main/streams/cast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/streams/cast.c b/main/streams/cast.c
index 9f5898c47c..6c3854b934 100644
--- a/main/streams/cast.c
+++ b/main/streams/cast.c
@@ -271,7 +271,7 @@ PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show
newstream = php_stream_fopen_tmpfile();
if (newstream) {
- int ret = php_stream_copy_to_stream_ex(stream, newstream, PHP_STREAM_COPY_ALL, NULL);
+ int retval = php_stream_copy_to_stream_ex(stream, newstream, PHP_STREAM_COPY_ALL, NULL);
if (ret != SUCCESS) {
php_stream_close(newstream);
@@ -279,7 +279,7 @@ PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show
int retcode = php_stream_cast(newstream, castas | flags, (void **)ret, show_err);
if (retcode == SUCCESS) {
- rewind(*(FILE**)ret);
+ rewind(*(FILE**)retval);
}
/* do some specialized cleanup */