xref: /PHP-5.6/ext/gd/tests/bug73869.phpt (revision d2274b01)
1--TEST--
2Bug #73869 (Signed Integer Overflow gd_io.c)
3--SKIPIF--
4<?php
5if (!extension_loaded('gd')) die('skip gd extension not available');
6?>
7--FILE--
8<?php
9var_dump(imagecreatefromgd2(__DIR__ . DIRECTORY_SEPARATOR . 'bug73869a.gd2'));
10var_dump(imagecreatefromgd2(__DIR__ . DIRECTORY_SEPARATOR . 'bug73869b.gd2'));
11?>
12===DONE===
13--EXPECTF--
14Warning: imagecreatefromgd2(): '%s' is not a valid GD2 file in %s on line %d
15bool(false)
16
17Warning: imagecreatefromgd2(): '%s' is not a valid GD2 file in %s on line %d
18bool(false)
19===DONE===