xref: /PHP-5.6/ext/gd/tests/bug72337.phpt (revision f8012595)
1--TEST--
2 #72337	segfault in imagescale with new dimensions being <=0)
3--SKIPIF--
4<?php
5        if (!function_exists('imagescale')) die("skip gd extension not available\n");
6?>
7--FILE--
8<?php
9$im = imagecreatetruecolor(1, 1);
10imagescale($im, 0, 0, IMG_BICUBIC_FIXED);
11echo "OK";
12?>
13--EXPECT--
14OK
15