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
c6a4e90e
Commit
c6a4e90e
authored
Nov 17, 2011
by
Gasol Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
instead of function_exists, use class_exists
parent
8be5a1ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
library/Solarium/Client/Adapter/PeclHttp.php
library/Solarium/Client/Adapter/PeclHttp.php
+1
-1
No files found.
library/Solarium/Client/Adapter/PeclHttp.php
View file @
c6a4e90e
...
@@ -55,7 +55,7 @@ class Solarium_Client_Adapter_PeclHttp extends Solarium_Client_Adapter
...
@@ -55,7 +55,7 @@ class Solarium_Client_Adapter_PeclHttp extends Solarium_Client_Adapter
protected
function
_init
()
protected
function
_init
()
{
{
// @codeCoverageIgnoreStart
// @codeCoverageIgnoreStart
if
(
!
function_exists
(
'http_get'
))
{
if
(
!
class_exists
(
'HttpRequest'
,
false
))
{
throw
new
Solarium_Exception
(
'Pecl_http is not available, install it to use the PeclHttp adapter'
);
throw
new
Solarium_Exception
(
'Pecl_http is not available, install it to use the PeclHttp adapter'
);
}
}
...
...
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