File manager - Edit - /opt/alt/tests/alt-php84-pecl-vips_1.0.13-1.el8/tests/014.phpt
Back
--TEST-- new_from_array works --SKIPIF-- <?php if (!extension_loaded("vips")) print "skip"; ?> --FILE-- <?php $image = vips_image_new_from_array([1, 2, 3]); $width1 = vips_image_get($image, "width")["out"]; $height1 = vips_image_get($image, "height")["out"]; $image = vips_image_new_from_array([[1, 2, 3], [4, 5, 6]]); $width2 = vips_image_get($image, "width")["out"]; $height2 = vips_image_get($image, "height")["out"]; if ($width1 == 3 && $height1 == 1 && $width2 = 3 && $height2 == 2) { echo "pass"; } ?> --EXPECT-- pass
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings