Re: [PHP] no default value

2007-07-18 Thread Stut
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 wi

Re: [PHP] no default value

2007-07-18 Thread tedd
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? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com --

Re: [PHP] no default value

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 7:01 am, Man-wai Chang wrote: > Is there a parameter in php.ini that requires all variables to be > explicitly initialized, rather than being automatically assigned the > value of false? No. There is a parameter in php.ini that tells you when you USE an uninitialized variabl

Re: [PHP] no default value

2007-07-17 Thread Stut
Man-wai Chang wrote: > Is there a parameter in php.ini that requires all variables to be > explicitly initialized, rather than being automatically assigned the > value of false? I think you'll find they get assigned the value of null, not false. There is no setting that enforces such a requiremen

Re: [PHP] no default value

2007-07-17 Thread Daniel Gerzo
On Tue, Jul 17, 2007 at 08:01:59PM +0800, Man-wai Chang wrote: > > Is there a parameter in php.ini that requires all variables to be > explicitly initialized, rather than being automatically assigned the > value of false? > Well, I am not aware of such php.ini variable, but I may recomment to in

[PHP] no default value

2007-07-17 Thread Man-wai Chang
Is there a parameter in php.ini that requires all variables to be explicitly initialized, rather than being automatically assigned the value of false? -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04) Linux 2.