Skip to content

Commit

Permalink
- MFH: Added a notice to getimagesize in case zlib is not available a…
Browse files Browse the repository at this point in the history
…nd a

  compressed SWF movie has been passed to the function.
  • Loading branch information
Derick Rethans committed Aug 11, 2004
1 parent 20181fd commit f65e4fe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ext/standard/image.c
Expand Up @@ -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;
Expand Down

0 comments on commit f65e4fe

Please sign in to comment.