helly Wed Nov 12 17:56:09 2003 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/standard image.c
Log:
MFH 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.72.2.12 php-src/ext/standard/image.c:1.72.2.13
--- php-src/ext/standard/image.c:1.72.2.12 Mon Nov 3 20:38:33 2003
+++ php-src/ext/standard/image.c Wed Nov 12 17:56:09 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: image.c,v 1.72.2.12 2003/11/04 01:38:33 iliaa Exp $ */
+/* $Id: image.c,v 1.72.2.13 2003/11/12 22:56:09 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