title: PHP script exec bash script does not print all bash lines
body: <p>I have php script on my redhat that im logging in as root via telnet client.<br>
  My PHP script to run the bash script is(functions.inc):</p>
  
  <pre><code>&lt;?php
  exec('/ilantest/testscript.sh');
  ?&gt;
  </code></pre>
  
  <p>My Bash script:  </p>
  
  <pre><code>#!/bin/bash
  echo "Hello world"
  echo "Whats going on ?"
  </code></pre>
  
  <p>And when i do: php functions.inc - I get the following:<br>
  Whats going on ?[root@X ilantest]#</p>
  
  <p>Why i dont see the first line ?<br>
  Thanks !</p>