helly Wed Nov 12 17:51:22 2003 EDT Modified files: /php-src/ext/standard image.c Log: Bugfix #26216: ("getimagesize(): stream does not support seeking" when using remote files) Index: php-src/ext/standard/image.c diff -u php-src/ext/standard/image.c:1.94 php-src/ext/standard/image.c:1.95 --- php-src/ext/standard/image.c:1.94 Sat Oct 25 10:06:26 2003 +++ php-src/ext/standard/image.c Wed Nov 12 17:51:22 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: image.c,v 1.94 2003/10/25 14:06:26 helly Exp $ */ +/* $Id: image.c,v 1.95 2003/11/12 22:51:22 helly Exp $ */ #include "php.h" #include <stdio.h> @@ -1201,7 +1201,7 @@ WRONG_PARAM_COUNT; } - stream = php_stream_open_wrapper(Z_STRVAL_PP(arg1), "rb", REPORT_ERRORS|IGNORE_PATH|ENFORCE_SAFE_MODE, NULL); + stream = php_stream_open_wrapper(Z_STRVAL_PP(arg1), "rb", STREAM_MUST_SEEK|REPORT_ERRORS|IGNORE_PATH|ENFORCE_SAFE_MODE, NULL); if (!stream) { RETURN_FALSE;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php