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

1.1     ! misho       1: --TEST--
        !             2: Bug #28147 (Crash with anti-aliased line)
        !             3: --SKIPIF--
        !             4: <?php
        !             5:        if (!extension_loaded('gd')) die("skip gd extension not available\n");
        !             6:        if (!function_exists("imageantialias")) die("skip requires bundled GD library\n");
        !             7: ?>
        !             8: --FILE--
        !             9: <?php
        !            10: //
        !            11: // This script will generate a Seg Fault on Linux
        !            12: //
        !            13: $im  = imagecreatetruecolor(300, 300);
        !            14: $w  = imagecolorallocate($im, 255, 255, 255);
        !            15: $red = imagecolorallocate($im, 255, 0, 0);
        !            16: 
        !            17: imagefilledrectangle($im,0,0,299,299,$w);
        !            18: 
        !            19: imageantialias($im,true);
        !            20: imageline($im, 299, 299, 0, 299, $red);
        !            21: 
        !            22: imagedestroy($im);
        !            23: 
        !            24: echo "Alive\n";
        !            25: ?>
        !            26: --EXPECT--
        !            27: Alive

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