Re: no default value

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

 



tedd wrote:
At 1:46 PM +0100 7/17/07, Stut wrote:
... but you can get
some of the way there by enabling the display of notices which will tell
you whenever a variable is used without being initialised.

How?

Look in php.ini for error_reporting. With it enabled if you try to use a variable without assigning a value to it it will generate a notice. There are a lot of situations this won't cover, but it covers more than having it disabled.

-Stut

--
http://stut.net/

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