Annotation of embedaddon/php/ext/gd/tests/crafted_gd2.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test max colors for a gd image.
        !             3: --SKIPIF--
        !             4: <?php
        !             5:        if (!extension_loaded('gd')) {
        !             6:                die("skip gd extension not available\n");
        !             7:        }
        !             8: ?>
        !             9: --FILE--
        !            10: <?php
        !            11: imagecreatefromgd(dirname(__FILE__) . '/crafted.gd2');
        !            12: ?>
        !            13: --EXPECTF--
        !            14: 
        !            15: Warning: imagecreatefromgd(): '%scrafted.gd2' is not a valid GD file in %s on line %d
        !            16: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>