title: ping in exec() not providing correct result
body: <p>When I'm trying to run the following script</p>
  
  <pre><code>$host = "ip here";
  exec("/bin/ping -c2 -w2 $host", $outcome, $status); 
  return print_r($outcome);
  </code></pre>
  
  <p>I see the following result</p>
  
  <pre><code>Array () 1
  </code></pre>
  
  <p>Any ideas as to why this could happen? I tried <code>ping</code> instead of <code>/bin/ping</code> to no avail</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>When running directly from SSH I'm getting shown the correct response thus being :</p>
  
  <pre><code>PING ip here 56(84) bytes of data.
  64 bytes from ip here : icmp_seq=1 ttl=243 time=4.47 ms
  64 bytes from ip here : icmp_seq=2 ttl=243 time=4.40 ms
  
  --- ip here ping statistics ---
  2 packets transmitted, 2 received, 0% packet loss, time 1005ms
  rtt min/avg/max/mdev = 4.406/4.438/4.470/0.032 ms
  </code></pre>