forked from laruence/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbug67248.phpt
27 lines (21 loc) · 903 Bytes
/
bug67248.phpt
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