xref: /PHP-8.1/ext/gd/tests/bug73957.phpt (revision a375d547)
1--TEST--
2Bug #73957 (signed integer conversion in imagescale())
3--EXTENSIONS--
4gd
5--SKIPIF--
6<?php
7if (PHP_INT_SIZE != 8) die('skip this test is for 64bit platforms only');
8?>
9--FILE--
10<?php
11$im = imagecreate(8, 8);
12$im = imagescale($im, 0x100000001, 1);
13var_dump($im);
14if ($im) { // which is not supposed to happen
15    var_dump(imagesx($im));
16}
17?>
18--EXPECT--
19bool(false)
20