mirror of
https://github.com/php/php-src.git
synced 2024-09-28 21:36:12 +00:00
15 lines
296 B
PHP
15 lines
296 B
PHP
--TEST--
|
|
#72337 segfault in imagescale with new dimensions being <=0)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!function_exists('imagescale')) die("skip gd extension not available\n");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$im = imagecreatetruecolor(1, 1);
|
|
imagescale($im, 0, 0, IMG_BICUBIC_FIXED);
|
|
echo "OK";
|
|
?>
|
|
--EXPECT--
|
|
OK
|