Bug #70047 [NEW]: gd_info() doesn't report WebP support

From: Date: Sat, 11 Jul 2015 15:09:33 +0000
Subject: Bug #70047 [NEW]: gd_info() doesn't report WebP support
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194329@lists.php.net to get a copy of this message
From:             cmb
Operating system: *
PHP version:      5.6.11
Package:          GD related
Bug Type:         Bug
Bug description:gd_info() doesn't report WebP support

Description:
------------
According to the gd_info() man page[1], as of PHP 5.5 the function
returns an array that has a 'WebP Support' key. However, that is
not the case.

[1] <http://www.php.net/manual/en/function.gd-info.php>


Test script:
---------------
<?php
var_dump(gd_info());
?>


Expected result:
----------------
array(13) {
  ["GD Version"]=>
  string(26) "bundled (2.1.0 compatible)"
  ["FreeType Support"]=>
  bool(true)
  ["FreeType Linkage"]=>
  string(13) "with freetype"
  ["T1Lib Support"]=>
  bool(false)
  ["GIF Read Support"]=>
  bool(true)
  ["GIF Create Support"]=>
  bool(true)
  ["JPEG Support"]=>
  bool(true)
  ["PNG Support"]=>
  bool(true)
  ["WBMP Support"]=>
  bool(true)
  ["XPM Support"]=>
  bool(true)
  ["XBM Support"]=>
  bool(true)
  ["WebP Support"]=>
  bool(true)
  ["JIS-mapped Japanese Font Support"]=>
  bool(false)
}


Actual result:
--------------
array(12) {
  ["GD Version"]=>
  string(26) "bundled (2.1.0 compatible)"
  ["FreeType Support"]=>
  bool(true)
  ["FreeType Linkage"]=>
  string(13) "with freetype"
  ["T1Lib Support"]=>
  bool(false)
  ["GIF Read Support"]=>
  bool(true)
  ["GIF Create Support"]=>
  bool(true)
  ["JPEG Support"]=>
  bool(true)
  ["PNG Support"]=>
  bool(true)
  ["WBMP Support"]=>
  bool(true)
  ["XPM Support"]=>
  bool(true)
  ["XBM Support"]=>
  bool(true)
  ["JIS-mapped Japanese Font Support"]=>
  bool(false)
}

-- 
Edit bug report at https://bugs.php.net/bug.php?id=70047&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=70047&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=70047&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=70047&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=70047&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=70047&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=70047&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=70047&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=70047&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=70047&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=70047&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=70047&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=70047&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=70047&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70047&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=70047&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=70047&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=70047&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70047&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=70047&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=70047&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#194329) next »