I’m getting a non-comform output behavior with quotes when executing PHP scripts on DreamHost server (PHP 5.3 FastCGI).
Here is an example:
It outputs this line:
As we can see, the first “class” propriety, with only one term (“foo”), lost its quotes, the second, with two terms, and even the “style” propriety, didn’t. This generates acceptable HTML code, but illegal XHTML.
Why does it happens? This goes against any PHP documentation.
I’ve turned off any “magic_quotes”, and they act just in incoming strings, not during output.
Strangely enough, sometimes the script runs correctly, without dropping the quotes. This behavior seems to be unpredictable.
Do you have any idea about what is causing it?