PHP4 supports DOMDocument? My code says yes?
<p>When I check phpinfo(), I see /usr/local/php4/lib/php.ini</p>

<p>That means PHP4, right?</p>

<p>But When I execute the line of code below, it returns PHP5. WTF? I thought PHP4 did not have the DOMDocument class. I need to test for PHP4 and do a workaround, but this specific test is confusing me. Is there another more foolproof way to check for PHP4 in script?</p>

<pre><code>if (is_admin() &amp;&amp; class_exists('DOMDocument')) {
    echo "PHP5";
} else {
    echo "Awe PHP4";
}
</code></pre>
