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

Warning: imageaffinematrixget(): Array expected as options in %s on line %d

Warning: imageaffinematrixget(): Number is expected as option in %s on line %d

Warning: imageaffinematrixget(): Number is expected as option in %s on line %d

Warning: imageaffinematrixget(): Number is expected as option in %s on line %d

Warning: imageaffinematrixget(): Invalid type for element 5 in %s on line %d

Warning: imageaffinematrixget(): Invalid type for element 6 in %s on line %d