ZF-2505: Unused variable - possibly wrong assignment?

Issue Type: Bug Created: 2008-01-26T19:08:59.000+0000 Last Updated: 2012-03-28T02:13:28.000+0000 Status: Resolved Fix version(s): - 1.5.1 (25/Mar/08)

Reporter: Sander Bol (tubularbell) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Config

Related issues: Attachments:


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().


Posted by old of Satoru Yoshida ( 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 :)



Posted by old of Satoru Yoshida ( 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 ( on 2008-03-21T20:21:23.000+0000

No, I thought it into 1.0.5 if 1.0.5 is scheduled.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.