xref: /PHP-5.6/ext/gd/tests/bug72730.phpt (revision 1bd103df)
1--TEST--
2Bug #72730: imagegammacorrect allows arbitrary write access
3--SKIPIF--
4<?php
5if (!function_exists("imagecreatetruecolor")) die("skip");
6?>
7--FILE--
8<?php
9$img =  imagecreatetruecolor(1, 1);
10imagegammacorrect($img, -1, 1337);
11?>
12DONE
13--EXPECTF--
14Warning: imagegammacorrect(): Gamma values should be positive in %sbug72730.php on line %d
15DONE