Published 2004-02-22 23:30:18

My main development server is softlinked to hell with the pear (and pear compatible) packages I maintain. This has one great advantage, that you tend to get the maximum testing possible...

This week picked up a few rather nasty bugs.
DataObjects - Dates, Having added a smart way to read/write date values, I missed the slight problem that pear's Date package doesnt accept dates in the format 1940-01-31, it needs the time at the end!

Flexy - this was a bit more problematic. I was putting an image on a page, and wrapping it with a <A tag, but for some reason on the compliled template, the link was being closed before the <img tag, and the image button never worked...
It turned out that My masterpiece of tree building for the HTML document (a 2 phase process of first matching start and end tags, using seperate stacks for each tag type, then tree building by stepping through and recursively looking for open to close.... ) had forgotten that when a phase 1 stack was empty, I should wipe the element off the stack (as well as reseting the stack counter..)

Ah well - bugs are great things..

I'm still halfway through writing an article on XML parsing with XML_Tree_Morph - kind of wonder if it takes so long to write the article, then it's not simple enough.. - mind you XML parsing is always hard to explain...



Add Your Comment

Follow us on