imageantialias_error2.phpt 483 B

123456789101112131415161718192021
  1. --TEST--
  2. Testing wrong parameter passing in imageantialias() of GD library
  3. --CREDITS--
  4. Guilherme Blanco <guilhermeblanco [at] hotmail [dot] com>
  5. #testfest PHPSP on 2009-06-20
  6. --EXTENSIONS--
  7. gd
  8. --FILE--
  9. <?php
  10. /*
  11. It seems the second argument passing is not being correctly checked.
  12. This test is failing due to this wrogn check
  13. */
  14. $image = imagecreatetruecolor(180, 30);
  15. var_dump(imageantialias($image, 'wrong param')); // 'wrogn param' is converted to true
  16. ?>
  17. --EXPECT--
  18. bool(true)