diff options
author | Derick Rethans <derick@php.net> | 2004-08-11 12:31:37 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2004-08-11 12:31:37 +0000 |
commit | f65e4feda4f1083f48b9cdecf3250ea90d852963 (patch) | |
tree | d510e0f311e7899d4972f8ebcf428654c5b9035e | |
parent | 20181fde3d300c5315f7e7a3988c93fb47a18ad2 (diff) | |
download | php-git-f65e4feda4f1083f48b9cdecf3250ea90d852963.tar.gz |
- MFH: Added a notice to getimagesize in case zlib is not available and a
compressed SWF movie has been passed to the function.
-rw-r--r-- | ext/standard/image.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/standard/image.c b/ext/standard/image.c index 329cd92bd6..8b85ab7192 100644 --- a/ext/standard/image.c +++ b/ext/standard/image.c @@ -1288,11 +1288,14 @@ PHP_FUNCTION(getimagesize) case IMAGE_FILETYPE_SWF: result = php_handle_swf(stream TSRMLS_CC); break; -#if HAVE_ZLIB && !defined(COMPILE_DL_ZLIB) case IMAGE_FILETYPE_SWC: +#if HAVE_ZLIB && !defined(COMPILE_DL_ZLIB) result = php_handle_swc(stream TSRMLS_CC); - break; +#else + php_error_docref(NULL TSRMLS_CC, E_NOTICE, "The image is a compressed SWF file, but you do not have a static version of the zlib extension enabled."); + #endif + break; case IMAGE_FILETYPE_PSD: result = php_handle_psd(stream TSRMLS_CC); break; |