PHP: Erratic behaviour of functions?
<p>What on earth is PHP doing here?</p>

<p>This first line works perfectly, but when I try to check whether the return of the <code>parse_url</code> is empty or not, my whole execution is stopped and the infamous White screen appears:</p>

<p><strong>Working:</strong></p>

<pre><code>$subFolderCheck = ( strlen( parse_url('http://www.example.com', PHP_URL_PATH)) &gt;1  ? true : false);
</code></pre>

<p><strong>Making my script go bananas:</strong></p>

<pre><code>$subFolderCheck = ( empty( parse_url('http://www.example.com', PHP_URL_PATH))  ? true : false);
</code></pre>
