mirror of
https://github.com/php/php-src.git
synced 2026-03-29 03:32:20 +02:00
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.
16 lines
288 B
PHP
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===
|