Re: Re: isset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2005-02-16 at 07:54, Matthew Weier O'Phinney wrote:
> * Bret Hughes <bhughes@xxxxxxxxxxxxx>:
> > 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux