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