Posted by Cristian Gutierrez on 07/13/05 17:15
Este lunes, hilarion@SPAM.op.SMIECI.pl dijo:
> Cristian Gutierrez wrote:
[...]
>> So far I've noticed that I only get those errors when actually *running*
>> the script, and I'm beggining to suspect there's little more (if at all)
>> to do without getting dirty with a PHP language parser. For example,
>> when I run the following script:
>> [...]
>
> Those notice messages are only available on runtime cause only
> then one can check for sure if some variable was set (or some constant
> was defined). Those notices have nothing to do with syntax.
You're right. Then I realize that it's not a syntax checker what I look
for (`php -l' is just fine for that), but the equivalent of `use strict'
in Perl. I guess some day `phplint' [1] will parse PHP5 completely.
Thanks,
[1] <http://www.icosaedro.it/phplint/>
--
Cristian Gutierrez /* crgutier@dcc.uchile.cl */
CChheecckk yyoouurr dduupplleexx sswwiittcchh..
[Back to original message]
|