--- embedaddon/php/main/streams/cast.c 2012/02/21 23:48:05 1.1.1.1 +++ embedaddon/php/main/streams/cast.c 2012/05/29 12:34:35 1.1.1.2 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: cast.c,v 1.1.1.1 2012/02/21 23:48:05 misho Exp $ */ +/* $Id: cast.c,v 1.1.1.2 2012/05/29 12:34:35 misho Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -271,7 +271,7 @@ PHPAPI int _php_stream_cast(php_stream *stream, int ca newstream = php_stream_fopen_tmpfile(); if (newstream) { - size_t retcopy = php_stream_copy_to_stream_ex(stream, newstream, PHP_STREAM_COPY_ALL, NULL); + int retcopy = php_stream_copy_to_stream_ex(stream, newstream, PHP_STREAM_COPY_ALL, NULL); if (retcopy != SUCCESS) { php_stream_close(newstream);