mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Fixed variable re-declaration
This commit is contained in:
parent
9acdcd93a7
commit
c33795b25b
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user