#39452 [Csd->Bgs]: image_type_to_extension returns jpeg instead of jpg

From: Date: Mon, 13 Nov 2006 09:14:41 +0000
Subject: #39452 [Csd->Bgs]: image_type_to_extension returns jpeg instead of jpg
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-104878@lists.php.net to get a copy of this message
ID: 39452 Updated by: tony2001@php.net Reported By: datenpunk@php.net -Status: Closed +Status: Bogus Bug Type: GetImageSize related Operating System: Debian PHP Version: 5.2.0 Previous Comments: ------------------------------------------------------------------------ [2006-11-12 22:57:18] datenpunk@php.net Sigh! - Sorry. I used a workaround posted at php.net. It uses !function_exists('image_type_to_extension') to determine if the php function exists... Shame on me! I'm sorry! ------------------------------------------------------------------------ [2006-11-09 16:50:33] tony2001@php.net image_type_to_extension() has been _enabled in 5.2.0_, are you sure you were using the same function before? ------------------------------------------------------------------------ [2006-11-09 16:32:03] datenpunk@php.net Description: ------------ Hello, this may be no bug or bogus but I just switched over to 5.2 and broke some apps because image_type_to_extension returns '.jpeg' instead of '.jpg'. I think that '.jpg' would be the right choice for an extension. Greetings -- Daniel KHan ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39452&edit=1

« previous php.bugs (#104878) next »