import libgd from zend
commit00ca68a71514ff3fddc89e2e8be1847893ac161d
authorPaul Tarjan <ptarjan@fb.com>
Sun, 17 Nov 2013 20:16:40 +0000 (17 12:16 -0800)
committerSara Golemon <sgolemon@fb.com>
Fri, 13 Dec 2013 04:03:27 +0000 (12 20:03 -0800)
tree059b1cf29b464435162124f89e64c0cbfbf0dcbd
parent668d43406659f37ca4b9efb4978ae38017912913
import libgd from zend

I tried puling in the real `libgd` but it turns out php-src forked the library pretty hard and didn't contribute back. Instead I'll just pull in their fork.

This is a straight copy and then I fixed all the stupid C -> C++ stuff and wrote the `php_compat.h` to shim.

Reviewed By: @alexmalyshev

Differential Revision: D1083759
86 files changed:
hphp/neo/neo_misc.h
hphp/runtime/ext/ext.h
hphp/runtime/ext/gd/ext_image.cpp [moved from hphp/runtime/ext/ext_image.cpp with 99% similarity]
hphp/runtime/ext/gd/ext_image.h [moved from hphp/runtime/ext/ext_image.h with 99% similarity]
hphp/runtime/ext/gd/libgd/COPYING [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/README [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_arc.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_arc_f_buggy.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_color.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_crop.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_filter.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_gd.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_gd2.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_gif_in.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_gif_out.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_intern.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_interpolation.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_io.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_io.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_io_dp.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_io_file.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_io_ss.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_jpeg.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_matrix.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_pixelate.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_png.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_rotate.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_security.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_ss.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_topal.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_transform.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_wbmp.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gd_webp.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdcache.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdcache.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdfontg.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdfontg.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdfontl.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdfontl.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdfontmb.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdfontmb.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdfonts.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdfonts.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdfontt.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdfontt.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdft.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdhelpers.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdhelpers.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdkanji.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/gdtables.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/jisx0208.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/php.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/php_compat.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/wbmp.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/wbmp.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/webpimg.cpp [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/webpimg.h [new file with mode: 0644]
hphp/runtime/ext/gd/libgd/xbm.cpp [new file with mode: 0644]
hphp/test/slow/ext_image/1786.php.expect [new file with mode: 0644]
hphp/test/slow/ext_image/1786.php.expectf [deleted file]
hphp/test/zend/bad/ext/gd/tests/createfromwbmp2_extern.php [moved from hphp/test/zend/good/ext/gd/tests/createfromwbmp2_extern.php with 100% similarity]
hphp/test/zend/bad/ext/gd/tests/createfromwbmp2_extern.php.expectf [moved from hphp/test/zend/good/ext/gd/tests/createfromwbmp2_extern.php.expectf with 100% similarity]
hphp/test/zend/good/ext/gd/tests/bug43073.php [moved from hphp/test/zend/bad/ext/gd/tests/bug43073.php with 100% similarity]
hphp/test/zend/good/ext/gd/tests/bug43073.php.expectf [moved from hphp/test/zend/bad/ext/gd/tests/bug43073.php.expectf with 100% similarity]
hphp/test/zend/good/ext/gd/tests/bug45799.php [moved from hphp/test/zend/bad/ext/gd/tests/bug45799.php with 100% similarity]
hphp/test/zend/good/ext/gd/tests/bug45799.php.expectf [moved from hphp/test/zend/bad/ext/gd/tests/bug45799.php.expectf with 100% similarity]
hphp/test/zend/good/ext/gd/tests/bug48801.php [moved from hphp/test/zend/bad/ext/gd/tests/bug48801.php with 100% similarity]
hphp/test/zend/good/ext/gd/tests/bug48801.php.expectf [moved from hphp/test/zend/bad/ext/gd/tests/bug48801.php.expectf with 100% similarity]
hphp/test/zend/good/ext/gd/tests/bug51671.php [moved from hphp/test/zend/bad/ext/gd/tests/bug51671.php with 100% similarity]
hphp/test/zend/good/ext/gd/tests/bug51671.php.expectf [moved from hphp/test/zend/bad/ext/gd/tests/bug51671.php.expectf with 100% similarity]
hphp/test/zend/good/ext/gd/tests/bug60160.php [moved from hphp/test/zend/bad/ext/gd/tests/bug60160.php with 100% similarity]
hphp/test/zend/good/ext/gd/tests/bug60160.php.expectf [moved from hphp/test/zend/bad/ext/gd/tests/bug60160.php.expectf with 100% similarity]
hphp/test/zend/good/ext/gd/tests/createfromwbmp2.php [moved from hphp/test/zend/bad/ext/gd/tests/createfromwbmp2.php with 100% similarity]
hphp/test/zend/good/ext/gd/tests/createfromwbmp2.php.expectf [moved from hphp/test/zend/bad/ext/gd/tests/createfromwbmp2.php.expectf with 100% similarity]
hphp/test/zend/good/ext/gd/tests/imageellipse_basic.php [moved from hphp/test/zend/bad/ext/gd/tests/imageellipse_basic.php with 100% similarity]
hphp/test/zend/good/ext/gd/tests/imageellipse_basic.php.expectf [moved from hphp/test/zend/bad/ext/gd/tests/imageellipse_basic.php.expectf with 100% similarity]
hphp/test/zend/good/ext/gd/tests/imagefilltoborder_basic.php [moved from hphp/test/zend/bad/ext/gd/tests/imagefilltoborder_basic.php with 100% similarity]
hphp/test/zend/good/ext/gd/tests/imagefilltoborder_basic.php.expectf [moved from hphp/test/zend/bad/ext/gd/tests/imagefilltoborder_basic.php.expectf with 100% similarity]
hphp/test/zend/good/ext/gd/tests/imagerotate_overflow.php [moved from hphp/test/zend/bad/ext/gd/tests/imagerotate_overflow.php with 100% similarity]
hphp/test/zend/good/ext/gd/tests/imagerotate_overflow.php.expectf [moved from hphp/test/zend/bad/ext/gd/tests/imagerotate_overflow.php.expectf with 100% similarity]
hphp/test/zend/good/ext/gd/tests/libgd00100.php [moved from hphp/test/zend/bad/ext/gd/tests/libgd00100.php with 100% similarity]
hphp/test/zend/good/ext/gd/tests/libgd00100.php.expectf [moved from hphp/test/zend/bad/ext/gd/tests/libgd00100.php.expectf with 100% similarity]
hphp/test/zend/good/ext/gd/tests/libgd00186.php [moved from hphp/test/zend/bad/ext/gd/tests/libgd00186.php with 100% similarity]
hphp/test/zend/good/ext/gd/tests/libgd00186.php.expectf [moved from hphp/test/zend/bad/ext/gd/tests/libgd00186.php.expectf with 100% similarity]