mirror of
https://github.com/php/php-src.git
synced 2024-09-26 20:37:29 +00:00
MFB: Add test case for #44849
This commit is contained in:
parent
274139bde1
commit
73558cf334
13
ext/gd/tests/bug44849.phpt
Normal file
13
ext/gd/tests/bug44849.phpt
Normal file
@ -0,0 +1,13 @@
|
||||
--TEST--
|
||||
Bug #44849 (imagecolorclosesthwb is not available on Windows)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if(!extension_loaded('gd')){ die('skip: gd extension not available'); }
|
||||
if(strtoupper(substr(PHP_OS, 0, 3)) != 'WIN'){ die('skip: not a Windows operating system'); }
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(function_exists('imagecolorclosesthwb'));
|
||||
?>
|
||||
--EXPECTF--
|
||||
bool(true)
|
Loading…
Reference in New Issue
Block a user