title: Cannot redeclare function previously declared, declared only once
body: <p>I'm running into a problem including this function from another file</p>
  
  <pre><code>function sendRes($s_attachment) //this is line 3
  {
     /*Snip : processing message details..*/
  
      try {
          mail($to, $subject, $message, $headers);
      } catch (Exception $e) {
          logMessage("An error occured:" . $e-&gt;getMessage());
      }
  } //this is line 54
  </code></pre>
  
  <p>When running the script, it outputs the following error</p>
  
  <blockquote>
    <p>Fatal error: Cannot redeclare sendRes() (previously declared in
    **********\email.php:3) in ***********\email.php on line 54</p>
  </blockquote>
  
  <p>But it's declared only once, I checked that the file is included only once too. And the file contains only this function.</p>
  
  <p>Any clues about why this isn't working ?</p>