xref: /PHP-5.6/ext/gd/tests/bug71952.phpt (revision f061867f)
1--TEST--
2Bug #71952 (Corruption inside imageaffinematrixget)
3--SKIPIF--
4<?php
5	if(!extension_loaded('gd')){ die('skip gd extension not available'); }
6?>
7--FILE--
8<?php
9$vals=[str_repeat("A","200"),0,1,2,3,4,5,6,7,8,9];
10imageaffinematrixget(4,$vals[0]);
11var_dump($vals[0]);
12?>
13--EXPECTF--
14string(200) "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"