Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
1eaa3a59
Commit
1eaa3a59
authored
Aug 21, 2011
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the peclhttp adapter now checks the availability of peclhttp to prevent undefined method errors
parent
e0845dcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
library/Solarium/Client/Adapter/PeclHttp.php
library/Solarium/Client/Adapter/PeclHttp.php
+15
-0
No files found.
library/Solarium/Client/Adapter/PeclHttp.php
View file @
1eaa3a59
...
@@ -46,6 +46,21 @@
...
@@ -46,6 +46,21 @@
*/
*/
class
Solarium_Client_Adapter_PeclHttp
extends
Solarium_Client_Adapter
class
Solarium_Client_Adapter_PeclHttp
extends
Solarium_Client_Adapter
{
{
/**
* Initialization hook
*
* Checks the availability of pecl_http
*/
protected
function
_init
()
{
if
(
!
function_exists
(
'http_get'
))
{
throw
new
Solarium_Exception
(
'Pecl_http is not available, install it to use the PeclHttp adapter'
);
}
parent
::
_init
();
}
/**
/**
* Execute a Solr request using the Pecl Http
* Execute a Solr request using the Pecl Http
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment