ZF-2505: Unused variable - possibly wrong assignment?
Description
In Zend_Config_Ini::__construct(), line 109 a variable $numberOfBits is set to count($bits), but never used from that point on.
The value it is initialized to is used for a switch a few lines down, by performing the count($bits) again. Looks like a piece of code left over from refactoring from If() to a Switch().
Comments
Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-03-10T11:44:58.000+0000
Fixed in SVN r8735
Posted by Rob Allen (rob) on 2008-03-10T15:17:39.000+0000
Thanks Satoru :)
Regards,
Rob...
Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-03-10T23:33:51.000+0000
You are welcom, Rob ;-)
Posted by Wil Sinclair (wil) on 2008-03-21T18:44:24.000+0000
Was this merged to the 1.5 branch for inclusion in 1.5.0?
Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-03-21T20:21:23.000+0000
No, I thought it into 1.0.5 if 1.0.5 is scheduled.