03:22 pm, 9 Dec 08
php bugs leak into my workday
Chromium uses WebKit. WebKit uses PHP for some of its layout tests. At least one of those tests fail on Linux. Why? From the PHP documentation:
This function does not always add trailing slash. This behaviour is inconsistent across systems, so you have keep an eye on it.OK, so in fairness, it is a user-submitted comment, not the official documentation. But I laughed pretty hard at "you have to keep an eye on it".
When PHP was my day-job I quite often got a chuckle at some of the user-submitted comments in the PHP manual. A lot of them are clearly from folks who don't understand exactly what they're doing and are programming by accident. The best ones though are the ones that are attached to PHP misfeatures like create_function; the particular comment I'm thinking of doesn't seem to be there anymore, but it was basically an essay about how the existance of this function is the best example of how the PHP "designers" know nothing about programming languages.
(I think it was a bit harsh; they do seem to be trying to get better, but that doesn't mean it wasn't funny!)