mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
ce1d69a1f6
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
446 B
PHP
18 lines
446 B
PHP
--TEST--
|
|
Testing error on non-long parameter 6 of imagecharup() 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 = imagecharup($image, 1, 5, 5, 'C', 'font');
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: imagecharup() expects parameter 6 to be int, %s given in %s on line %d
|