1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00
Files
archived-php-src/ext/gd/tests/bug76041.phpt
Christoph M. Becker d83467d70b Fix #76041: null pointer access crashed php
We must not draw anti-aliased lines on palette images, because that is
not supported by `gdImageSetAAPixelColor()` and it wouldn't make much
sense to support it, due to the limitation to at most 256 colors.
2018-03-02 17:18:45 +01:00

16 lines
288 B
PHP

--TEST--
Bug #76041 (null pointer access crashed php)
--SKIPIF--
<?php
if (!extension_loaded('gd')) die('skip gd extension not available');
?>
--FILE--
<?php
$im=imagecreate(100, 100);
imageantialias($im, true);
imageline($im, 0, 0, 10, 10, 0xffffff);
?>
===DONE===
--EXPECT--
===DONE===