Re: Re: isset
| From: | Bret Hughes | Date: | Wed, 16 Feb 2005 15:21:55 +0000 |
| Subject: | Re: Re: isset | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208828@lists.php.net to get a copy of this message | ||
On Wed, 2005-02-16 at 07:54, Matthew Weier O'Phinney wrote:
> * Bret Hughes <bhughes@elevating.com>:
> > I just wish there was a use strict; sort of deal so I would not have to
> > hunt down logic errors due to mistyping a variable name.
>
> There is, in PHP5: E_STRICT. From the manual
> (http://php.net/manual/en/ref.errorfunc.php#errorfunc.constants):
>
> Run-time notices. Enable to have PHP suggest changes to your
> code which will ensure the best interoperability and forward
> compatibility of your code.
>
Hmm. Good tip thanks. chalk up another reason to upgrade to 5.
getting close to haveing enough reasons to do so :)
E_STRICT is closer but still does not warn of assigning to undeclared
variables in or out of a class. bummer.
Bret