summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imagestringup_error1.phpt
blob: 14477273ba79ecf54d48efd7a8624d425db23ca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Testing error on non-resource parameter 1 of imagestringup() 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

$result = imagestringup('string', 1, 5, 5, 'String', 1);

?>
--EXPECTF--
Warning: imagestringup() expects parameter 1 to be resource, %s given in %s on line %d