Changeset 1207
- Timestamp:
- 01/09/08 11:44:03 (11 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/util/net/stubBSDSocket.php
r1206 r1207 225 225 } 226 226 227 $this->fp = socket_create($this->domain, $this->type, $this->protocol);227 $this->fp = @socket_create($this->domain, $this->type, $this->protocol); 228 228 if (false === $this->fp) { 229 $errorMessage = $this->lastError(); 230 $this->fp = null; 231 throw new stubConnectionException(sprintf('Create of %s socket (type %s, protocol %s) failed: %s', 229 $this->fp = null; 230 throw new stubConnectionException(sprintf('Create of %s socket (type %s, protocol %s) failed.', 232 231 self::$domains[$this->domain], 233 232 self::$types[$this->type], 234 getprotobynumber($this->protocol), 235 $errorMessage 233 getprotobynumber($this->protocol) 236 234 ) 237 235 );
