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

1.1     ! misho       1: --TEST--
        !             2: libgd #101 (imagecreatefromgd can crash if gdImageCreate fails)
        !             3: --SKIPIF--
        !             4: <?php
        !             5:        if (!extension_loaded('gd')) die("skip gd extension not available\n");
        !             6:        if (!GD_BUNDLED) die("skip requires bundled GD library\n");
        !             7: ?>
        !             8: --FILE--
        !             9: <?php
        !            10: $im = imagecreatefromgd(dirname(__FILE__) . '/libgd00101.gd');
        !            11: var_dump($im);
        !            12: ?>
        !            13: --EXPECTF--
        !            14: Warning: imagecreatefromgd(): gd warning: product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
        !            15:  in %slibgd00101.php on line %d
        !            16: 
        !            17: Warning: imagecreatefromgd(): '%slibgd00101.gd' is not a valid GD file in %slibgd00101.php on line %d
        !            18: bool(false)

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