Home
last modified time | relevance | path

Searched refs:imagecrop (Results 1 – 6 of 6) sorted by relevance

/PHP-8.2/ext/gd/tests/
H A Dbug66356.phpt2 Bug #66356 (Heap Overflow Vulnerability in imagecrop())
10 var_dump(imagecrop($img, array("x" => "a", "y" => 0, "width" => 10, "height" => 10)));
13 var_dump(imagecrop($img, $arr));
17 var_dump(imagecrop($img, array("x" => 0, "y" => 0, "width" => -1, "height" => 10)));
20 var_dump(imagecrop($img, array("x" => -20, "y" => -20, "width" => 10, "height" => 10)));
23 var_dump(imagecrop($img, array("x" => 0x7fffff00, "y" => 0, "width" => 10, "height" => 10)));
26 var_dump(imagecrop($img, array("x" => 0, "y" => 0, "width" => 65535, "height" => 65535)));
41 Warning: imagecrop(): %cne parameter to a memory allocation multiplication is negative or zero, fai…
49 Warning: imagecrop(): %croduct of memory allocation multiplication would exceed INT_MAX, failing op…
H A Dbug67447.phpt2 Bug #67447 (imagecrop() adds a black line when cropping)
11 $cropped = imagecrop($image, ['x' => 0, 'y' => 0, 'width' => 250, 'height' => 250]);
21 $cropped = imagecrop($image, ['x' => 0, 'y' => 0, 'width' => 250, 'height' => 250]);
H A Dimagecrop_auto.phpt7 if (!function_exists('imagecrop')) die( 'skip GD imagecropauto not present; skipping test' );
/PHP-8.2/ext/gd/
H A Dgd_arginfo.h709 ZEND_FUNCTION(imagecrop);
856 ZEND_FE(imagecrop, arginfo_imagecrop)
H A Dgd.stub.php765 function imagecrop(GdImage $image, array $rectangle): GdImage|false {} function
H A Dgd.c3507 PHP_FUNCTION(imagecrop) in PHP_FUNCTION() argument

Completed in 20 milliseconds