1--TEST--
2Prevent zero dimension images and check exception
3--SKIPIF--
4<?php
5
6require_once(dirname(__FILE__) . '/skipif.inc');
7
8
9?>
10--FILE--
11<?php
12
13$im = new Imagick();
14
15$im->newPseudoImage(0, 100, "magick:logo");
16$im->newPseudoImage(100, 0, "magick:logo");
17
18ini_set("imagick.allow_zero_dimension_images", 1);
19$im->newPseudoImage(0, 100, "magick:logo");
20echo "Well done, you have a zero dimension image. Now what?\n";
21
22echo "Ok";
23
24?>
25--EXPECTF--
26Deprecated: Creating images with zero columns is deprecated. If you think you need to do this, please open an issue at https://phpimagick.com/issues in %s on line %d
27
28Deprecated: Creating images with zero rows is deprecated. If you think you need to do this, please open an issue at https://phpimagick.com/issues in %s on line %d
29Well done, you have a zero dimension image. Now what?
30Ok