1
0
mirror of https://github.com/php/php-src.git synced 2026-04-03 14:12:38 +02:00

Fixed variable re-declaration

This commit is contained in:
Ilia Alshanetsky
2011-01-13 12:56:28 +00:00
parent b2c4503fbe
commit 93fd1bf53f

View File

@@ -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 */