[Phpmyadmin-devel] Initialize or Not

Chanaka Dharmarathna pe.chanaka.ck at gmail.com
Sat May 17 14:26:29 CEST 2014


Hi All,

I'm just exploring the issues raised by scrutinizer. It raise issues like,
variable is not initialized. Have a look at issue [0], complaining on code
segment [1].

Personally I like to initialize variables, before using it, even a value is
assigning at some point of the execution path. In this case we can
initialized it like $x=array('foo');

As I remember Marc mentioned different thought on this kind of situation
(at the LinuxTag booth). You may have good thoughts we should know.

So what we should do for this kind of issue ? Just ignore them since PHP
does not force, or fix them ? Appreciate your thoughts.

[0] : http://goo.gl/HNW8Be
[1] : http://goo.gl/vUj25O

Regards !
-- 
Chanaka Dharmarathna
*http://chanakaindrajith.blogspot.com/*<http://chanakaindrajith.blogspot.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20140517/a4f57a72/attachment.html>


More information about the Developers mailing list