note 119816 added to solrclient.construct

From: Date: Wed, 31 Aug 2016 14:57:53 +0000
Subject: note 119816 added to solrclient.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-206431@lists.php.net to get a copy of this message
If the specified path is inexistent it throws a warning AND an exception. Is there any possibility to throw only the exception? <?php $options = ['hostname' => 'localhost', 'port' => 8983, 'path' => 'solr/inexistentcore']; $client = new SolrClient($options); $client->ping(); // this throws both a warning and an exception! ?> ---- Server IP: 72.52.91.14 Probable Submitter: 78.51.29.76 ---- Manual Page -- http://php.net/manual/en/solrclient.construct.php Edit -- https://master.php.net/note/edit/119816 Del: integrated -- https://master.php.net/note/delete/119816/integrated Del: useless -- https://master.php.net/note/delete/119816/useless Del: bad code -- https://master.php.net/note/delete/119816/bad+code Del: spam -- https://master.php.net/note/delete/119816/spam Del: non-english -- https://master.php.net/note/delete/119816/non-english Del: in docs -- https://master.php.net/note/delete/119816/in+docs Del: other reasons-- https://master.php.net/note/delete/119816 Reject -- https://master.php.net/note/reject/119816 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206431) next »