image_type_to_extension have to return false if bad params or imagetype not found
commit63fcdd3cfba53195fdf96e3e10316d70941e174f
authorThomas Colomb <thomas.colomb@dailymotion.com>
Thu, 17 Dec 2015 00:05:28 +0000 (16 16:05 -0800)
committerhhvm-bot <hhvm-bot@fb.com>
Thu, 17 Dec 2015 00:31:57 +0000 (16 16:31 -0800)
tree76a91a00282ba4400db2977adcdae91a7aceb10b
parentc3edca03ab83dc0937bdaaee16625a429b43bf97
image_type_to_extension have to return false if bad params or imagetype not found

Summary: Closes https://github.com/facebook/hhvm/pull/6656

Reviewed By: JoelMarcey

Differential Revision: D2760714

Pulled By: fredemmott

fb-gh-sync-id: 6805f17c38d2126ea0496e74e8c6050693872bd0
hphp/runtime/ext/gd/ext_gd.cpp
hphp/runtime/ext/gd/ext_gd.h
hphp/runtime/ext/gd/ext_gd.php
hphp/test/zend/good/ext/standard/tests/image/image_type_to_extension.php [moved from hphp/test/zend/bad/ext/standard/tests/image/image_type_to_extension.php with 100% similarity]
hphp/test/zend/good/ext/standard/tests/image/image_type_to_extension.php.expectf [moved from hphp/test/zend/bad/ext/standard/tests/image/image_type_to_extension.php.expectf with 100% similarity]
hphp/test/zend/good/ext/standard/tests/image/image_type_to_extension.php.skipif [moved from hphp/test/zend/bad/ext/standard/tests/image/image_type_to_extension.php.skipif with 100% similarity]