Doc #60055 [NEW]: SolrClient::Ping throws both E_ERROR and SolrClientException
| From: | gcontreras at digbang dot com | Date: | Thu, 13 Oct 2011 15:45:36 +0000 |
| Subject: | Doc #60055 [NEW]: SolrClient::Ping throws both E_ERROR and SolrClientException | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-7322@lists.php.net to get a copy of this message | ||
From:
Operating system: Any
PHP version: Irrelevant
Package: solr
Bug Type: Documentation Problem
Bug description:SolrClient::Ping throws both E_ERROR and SolrClientException
Description:
------------
---
From manual page:
http://www.php.net/solrclient.ping#refsect1-solrclient.ping-returnvalues
---
The SolrClient::Ping function will throw a E_ERROR if the client can't
connect to the Solr Server. If this error is handled, the function will
throw the SolrClientException as documented.
May also refer to: https://bugs.php.net/bug.php?id=59511
Test script:
---------------
$options = array(
...
);
$solr = new SolrClient($options);
$solr->ping(); //Will throw E_ERROR
set_error_handler(...);
$solr->ping(); //Will throw SolrClientException
Expected result:
----------------
I believe the ping function shouldn't throw a E_ERROR, as it complicates
code where an application is not dependant on Solr.
--
Edit bug report at https://bugs.php.net/bug.php?id=60055&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60055&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60055&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60055&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=60055&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60055&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=60055&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=60055&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=60055&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=60055&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=60055&r=support
Expected behavior: https://bugs.php.net/fix.php?id=60055&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=60055&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=60055&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=60055&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60055&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60055&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=60055&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=60055&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=60055&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=60055&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=60055&r=mysqlcfg