Them old old bugs
Wow.
I've been using ezSQL day in day out for over 4 years, and one functions that hasn't changed since ezSQL V1 is $db->get_col()
I've used the function many times, it makes it easy to create a 1 dimensional array directly from a query.
For the first time ever today I got a notice about an undefined variable in this function.
(I always set my php dev system to errors E_ALL so I get notices etc.)
Aparently in all the times I have used the function It has never returned an empty result set either in a dev environment or in production!
The undefined variable notice only happens when an empty result set is returned.
And now I'm wondering what other four year old bugs are lurking in my code...







4 Comments
Basicly our goal is to have a 100% notice free codebase.
The reason why it makes sense is because when you browse through notices that are logged in your production environmet it brings your attention to things that you might not have otherwise noticed.
Well worth the pain :)
I really liked the functionality and help it did everything I needed and coped well with mega traffic til I had the site recoded.
Hey you know AdGuy always gets the last word! ;)