xref: /PHP-8.3/ext/gd/tests/libgd00086_extern.phpt (revision 0aaad46c)
1--TEST--
2libgd #86 (Possible infinite loop in imagecreatefrompng)
3--EXTENSIONS--
4gd
5--SKIPIF--
6<?php
7    if (GD_BUNDLED) die("skip requires external GD library\n");
8?>
9--FILE--
10<?php
11
12$im = imagecreatefrompng(__DIR__ . '/libgd00086.png');
13var_dump($im);
14?>
15--EXPECTF--
16Warning: imagecreatefrompng(): gd-png: fatal libpng error: Read Error: truncated data%win %s on line %d
17
18Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition %d%win %s on line %d
19
20Warning: imagecreatefrompng(): "%slibgd00086.png" is not a valid PNG file in %s on line %d
21bool(false)
22