xref: /PHP-7.2/ext/gd/tests/bug67248.phpt (revision 75f93ed6)
1--TEST--
2Bug #67248 (imageaffinematrixget missing check of parameters)
3--SKIPIF--
4<?php
5        if(!extension_loaded('gd')){ die('skip gd extension not available'); }
6        if(!function_exists('imageaffinematrixget')) die('skip imageaffinematrixget() not available');
7?>
8--FILE--
9<?php
10for($i=0;$i<7;$i++) {
11	imageaffinematrixget($i);
12}
13?>
14--EXPECTF--
15Warning: imageaffinematrixget(): Array expected as options in %s on line %d
16
17Warning: imageaffinematrixget(): Array expected as options in %s on line %d
18
19Warning: imageaffinematrixget(): Number is expected as option in %s on line %d
20
21Warning: imageaffinematrixget(): Number is expected as option in %s on line %d
22
23Warning: imageaffinematrixget(): Number is expected as option in %s on line %d
24
25Warning: imageaffinematrixget(): Invalid type for element 5 in %s on line %d
26
27Warning: imageaffinematrixget(): Invalid type for element 6 in %s on line %d
28