我使用phplint检查我的PHP代码。我嗡的Windows 8.1和我的编辑是崇高的文本3 这是我的一个小代码片段:phplint未申报功能
<?php
header("Content-type: image/png");
$singleHeight = 129;
$singleWidth = 97;
$bild = imagecreatetruecolor(1170, 520);
$orange = imagecolorallocate($bild, 248, 154, 38);
imagefill($bild, 0, 0, $orange);
....
?>
而这里的phplint报告:
1:功能“头()”(仍然)没有宣布。从使用中猜测签名。提示:最好在使用前声明函数
1:未声明的函数'header()'只能使用一次:拼写错误?
3:变量 '$ singleHeight' 分配,但从未使用
4:变量 '$ singleWidth' 分配,但从未使用
5:函数 'imagecreatetruecolor()'(仍然)不声明。从使用中猜测签名。提示:最好在使用之前声明这些函数
5:未声明的函数'imagecreatetruecolor()'只能使用一次:拼写错误?
6:函数'imagecolorallocate()'(仍然)没有声明。从使用中猜测签名。提示:最好在使用之前声明函数
6:未声明的函数'imagecolorallocate()'只能使用一次:拼写错误? 7:函数'imagefill()'(仍然)没有声明。从使用中猜测签名。提示:最好在使用之前声明这些函数
7:未声明的函数'imagefill()'只能使用一次:拼写错误?
什么是未声明的功能?代码本身工作正常。