mirror of
https://github.com/php/php-src.git
synced 2026-03-28 10:12:18 +01:00
PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
18 lines
442 B
PHP
18 lines
442 B
PHP
--TEST--
|
|
Testing error on non-long parameter 4 of imagechar() of GD library
|
|
--CREDITS--
|
|
Rafael Dohms <rdohms [at] gmail [dot] com>
|
|
#testfest PHPSP on 2009-06-20
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded("gd")) die("skip GD not present");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$image = imagecreatetruecolor(180, 30);
|
|
$result = imagechar($image, 1, 5, 'string', 'C', 1);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: imagechar() expects parameter 4 to be int, %s given in %s on line %d
|