xref: /PHP-8.2/ext/gd/tests/bug71952.phpt (revision a375d547)
1--TEST--
2Bug #71952 (Corruption inside imageaffinematrixget)
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7$vals=[str_repeat("A","200"),0,1,2,3,4,5,6,7,8,9];
8imageaffinematrixget(4,$vals[0]);
9var_dump($vals[0]);
10?>
11--EXPECT--
12string(200) "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
13