Changeset 1348

Show
Ignore:
Timestamp:
02/20/08 15:59:55 (9 months ago)
Author:
mikey
Message:

prevent premature output resulting in E_WARNING about headers already sent

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/util/net/stubSocket.php

    r1301 r1348  
    8181        $errno    = 0; 
    8282        $errstr   = ''; 
    83         $this->fp = fsockopen($this->host, $this->port, $errno, $errstr, $this->timeout); 
     83        $this->fp = @fsockopen($this->host, $this->port, $errno, $errstr, $this->timeout); 
    8484        if (false === $this->fp) { 
    8585            $this->fp = null;