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