title: Combining empty() and trim() kills Apache server
body: <p>I want to trim a string and then check said string for being empty, like so:</p>
  
  <pre><code>if(!empty(trim($string))) { ... }
  </code></pre>
  
  <p>But for some unknown reason this happens to make my local Apache crash. The only error message I get states that Apache stopped working. My Apache version is </p>
  
  <blockquote>
    <p>Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4</p>
  </blockquote>
  
  <p>The following code though executes perfectly:</p>
  
  <pre><code> $string = trim($string);
   if(!empty($string)) { ... }
  </code></pre>
  
  <p>So, my code is running just fine. Still I was wondering: why does Apache crash because of this? In my eyes, both code snippets are the same. Or am I missing something?</p>
  
  <p>Thanks!</p>