Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2001122

[PHP-DEV] Bug #14579: ImageTypes() returns no supported Image Types From: alex.killing <email protected>
Date: 12/18/01

From: alex.killing <email protected>
Operating system: RedHat6.2
PHP version: 4.1.0
PHP Bug Type: GD related
Bug description: ImageTypes() returns no supported Image Types

gd1.3/PHP4.1.0

[...]
$im_types =  <email protected>();
if(empty($im_types))
{
  echo "Error";
}
else
{
  if($im_types & IMG_JPG)
  {
[...]

-> Error is echoed.

php_info() says:

GD support enabled
GD version between 1.3 and 1.6.1
GIF Read Support enabled
GIF Create Support enabled

The same script with PHP4.0.3pl1 and PHP4.0.6 acts as expected.

-- 
Edit bug report at: http://bugs.php.net/?id=14579&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>