<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-05-17 14:26 GMT+02:00 Chanaka Dharmarathna <span dir="ltr"><<a href="mailto:pe.chanaka.ck@gmail.com" target="_blank">pe.chanaka.ck@gmail.com</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi All,<br><br></div>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].<br>

<br>
</div>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');<br><br></div>As I remember Marc mentioned different thought on this kind of situation (at the LinuxTag booth). You may have good thoughts we should know.<br>


<div><div><br>So what we should do for this kind of issue ? Just ignore them since PHP does not force, or fix them ? Appreciate your thoughts.<br clear="all"><div><div><div><br>[0] : <a href="http://goo.gl/HNW8Be" target="_blank">http://goo.gl/HNW8Be</a><br>


[1] : <a href="http://goo.gl/vUj25O" target="_blank">http://goo.gl/vUj25O</a><br><br></div><div>Regards !<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>

-- <br><div dir="ltr"><font size="4">Chanaka Dharmarathna</font></div></div></font></span></div></div></div></div></div></blockquote><div><br></div><div>Hi,</div><div><br></div><div>I think this is better to "fix" them. Because it is always difficult to know the behavior of PHP in this case. And what could happen in next version if they decide to change this behavior?</div>

<div>I really don't like to let IT decides itself how it should behave. :)</div><div><br></div><div>If I find this kind of code, I wouldn't ask and fix it immediatly. </div><div><br></div><div>Hugues.</div></div>
</div>
</div>