This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 241674

Summary: PHP Constants for images wrong IMG_WBMP returns TIFF
Product: php Reporter: recojohnson
Component: ProjectAssignee: Tomas Mysik <tmysik>
Status: RESOLVED INVALID    
Severity: normal CC: recojohnson
Priority: P4    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot of IMG_WBMP auto-complete feature

Description recojohnson 2014-02-11 06:37:42 UTC
Created attachment 145011 [details]
Screenshot of IMG_WBMP auto-complete feature

PHP Constants for images wrong IMG_WBMP returns TIFF when using image_type_to_extension()

IMG_WBMP in in auto-complete of netbeans 7.4 and gives the value 8 when it should give 15

There are probably more, if someone who contributes to netbeans could update it would be fantastic

Thanks for your hard work!

http://ca1.php.net/manual/en/function.image-type-to-extension.php
Comment 1 Ondrej Brejla 2014-02-11 09:00:04 UTC
It's defined in sig files. Reassigning.
Comment 2 Tomas Mysik 2015-05-19 12:19:43 UTC
(In reply to recojohnson from comment #0)
> IMG_WBMP in in auto-complete of netbeans 7.4 and gives the value 8 when it
> should give 15

No, it should not. The 8 is correct value, see [1].

Thanks for reporting.
[1]
php > echo IMG_WBMP;
8