panjiwa10028 / solr-php-client

Automatically exported from code.google.com/p/solr-php-client
Other
0 stars 0 forks source link

Warning in fsockopen when Solr is unavailable (error_reporting = E_ALL | E_STRICT) #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Error (when enable error_reporting = E_ALL | E_STRICT in php.ini): 

Warning: fsockopen() [function.fsockopen]: unable to connect to
192.168.1.5:8983 (Connection timed out) in Apache/Solr/Service.php on line 552

Solr PHP Client (Build 03/11/09)

Original issue reported on code.google.com by gux...@gmail.com on 22 Jul 2009 at 9:06

GoogleCodeExporter commented 8 years ago
My proposal:

ob_start();
$fp    = fsockopen($this->_host, $this->_port, $errno, $errstr, $timeout);
$error = ob_get_contents();
ob_end_clean();

if (!$fp) {
  throw new Apache_Solr_Service_Exception('Solr unavailable');
  return false;
}

Original comment by gux...@gmail.com on 23 Jul 2009 at 8:39

GoogleCodeExporter commented 8 years ago
This is actually a duplicate of issue #7

If you see my comment there: 
http://code.google.com/p/solr-php-client/issues/detail?id=7&can=1#c1

I still need to make a new build, so I'll keep this open.

Original comment by donovan....@gmail.com on 23 Jul 2009 at 8:58

GoogleCodeExporter commented 8 years ago
New archives built from r16 are now available from the downloads tab.

Original comment by donovan....@gmail.com on 4 Aug 2009 at 6:40