public function setPersistentSocket($b)
    {
        $was_persistent = ($this->_sock && $this->_persistentSocket);
        $this->_persistentSocket = (boolean)$b;
        if (!$this->_persistentSocket && $was_persistent) {
            fclose($this->_sock);
        }
    }
public function setPersistentSocket($b)
    {
        $was_persistent = ($this->_sock && $this->_persistentSocket);
        $this->_persistentSocket = (boolean)$b;
        if (!$this->_persistentSocket && $was_persistent) {
            fclose($this->_sock);
        }
    }
public function setPersistentSocket ( $ b ) { $ was_persistent = ( $ this -> _sock && $ this -> _persistentSocket ) ; $ this -> _persistentSocket = ( boolean ) $ b ; if ( ! $ this -> _persistentSocket && $ was_persistent ) { fclose ( $ this -> _sock ) ; } }
Define whether or not PHP should attempt to re-use sockets opened by previous
request for efficiency

@param Boolean $b true if persistent socket should be used, false otherwise
Define whether or not PHP should attempt to re - use sockets opened by previous request for efficiency