Bug #70047 [Asn->Csd]: gd_info() doesn't report WebP support
Edit report at https://bugs.php.net/bug.php?id=70047&edit=1
ID: 70047
Updated by: cmb@php.net
Reported by: cmb@php.net
Summary: gd_info() doesn't report WebP support
-Status: Assigned
+Status: Closed
Type: Bug
Package: GD related
Operating System: *
PHP Version: 5.6.11
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=php-src.git;a=commit;h=450fbdc74079a23db83430c6035cdbb7d83e4d1b
Log: Fix #70047: gd_info() doesn't report WebP support
Previous Comments:
------------------------------------------------------------------------
[2015-07-11 15:09:32] cmb@php.net
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 this bug report at https://bugs.php.net/bug.php?id=70047&edit=1
Thread (2 messages)