PHP Classes

Class is broken?

Recommend this page to a friend!

      Bit Array  >  All threads  >  Class is broken?  >  (Un) Subscribe thread alerts  
Subject:Class is broken?
Summary:This class seems to have some obvious bugs
Messages:2
Author:Paul
Date:2009-03-18 09:29:22
Update:2009-03-18 10:13:27
 

  1. Class is broken?   Reply   Report abuse  
Picture of Paul Paul - 2009-03-18 09:29:22
If you check the example php file you'll see the output is wrong... the last bit is always printed 'false' in each example.

Looking at the code there seems to be confusion about the length of the array and testing <= length when it should just be <

I'll see if I can upload a fixed one.

  2. Re: Class is broken?   Reply   Report abuse  
Picture of Paul Paul - 2009-03-18 10:13:27 - In reply to message 1 from Paul
also... good god this website is ugly!