我使用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()'只能使用一次:拼寫錯誤?
什麼是未聲明的功能?代碼本身工作正常。