Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Michael Kimsal's Blog:
PHP short tags/xml patch (AKA long live short tags!)
Jan 16, 2006 @ 13:54:44

On Michael Kimsal's blog today, there's this new post with his method handling the "short tags" issue that plagues so many developers out there with a patch that makes it less of a problem.

For years I've been seeing people try to get rid of PHP "short tags" - Well, last year I made a quick patch to prove that the XML tag conflict was something that could be taken care of at the PHP parser level. It worked, but I lost that patch. So, I put it together again and would like some feedback. It seems to work OK on my end, and I'd like to see if this is something that we could get some traction behind.

He gives the source for the patch, a modification to one of the C files prior to compiling the PHP installation....

tagged: short tags long live patch zend_language_scanner.c short tags long live patch zend_language_scanner.c

Link:


Trending Topics: