Reply to Re: Is there a setting or program for doing strict checking in PHP compilation?

Your name:

Reply:


Posted by Chris Hope on 11/14/85 11:21

mydejamail@yahoo.co.uk wrote:

> Coming from an objectpascal background with strict type checking, I am
> being driven nuts by PHP.
>
> Stuff like using variables without declaring them, case sensitivity of
> variables, getting true, false, 0, 1, "" mixed up, missing the $
> before variables etc is really slowing me down.
>
> Is there a way to configure a run-time setting or interpreter setting
> that will throw up warnings or declare an error if some of these
> issues are present?
>
> I really need an external lint type program or a run-time setting that
> will highlight these issues in PHP.

Use === for a strict type checked comparison, and error_reporting(15) to
get the other stuff (or change the setting in your local php.ini or
httpd.conf files).

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com

[Back to original 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

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