I'm using phplint to check my PHP code. I'm om Windows 8.1 and my editor is Sublime Text 3. Here is a little code snippet of mine:
<?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);
....
?>
And here's the phplint report:
1: function 'header()' (still) not declared. Guessing signature from its usage. Hint: it's better to declare the functions before their usage
1: undeclared function 'header()' used only once: misspelled?
3: variable '$singleHeight' assigned but never used
4: variable '$singleWidth' assigned but never used
5: function 'imagecreatetruecolor()' (still) not declared. Guessing signature from its usage. Hint: it's better to declare the functions before their usage
5: undeclared function 'imagecreatetruecolor()' used only once: misspelled?
6: function 'imagecolorallocate()' (still) not declared. Guessing signature from its usage. Hint: it's better to declare the functions before their usage
6: undeclared function 'imagecolorallocate()' used only once: misspelled?
7: function 'imagefill()' (still) not declared. Guessing signature from its usage. Hint: it's better to declare the functions before their usage
7: undeclared function 'imagefill()' used only once: misspelled?
What is that thing with the undeclared functions? The code itself works fine.