You are here: Re: strict checks with php -l « PHP Programming Language « IT news, forums, messages
Re: strict checks with php -l

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..

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация