summaryrefslogtreecommitdiffstats
path: root/examples/detect.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/detect.php')
-rw-r--r--examples/detect.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/detect.php b/examples/detect.php
index 28d8a28..c368d0d 100644
--- a/examples/detect.php
+++ b/examples/detect.php
@@ -386,6 +386,14 @@ function detect_xml($r, &$out)
function detect_fetcher($r, &$out)
{
$out .= $r->h2('HTTP Fetching');
+
+ $result = @include 'Services/Yadis/Yadis.php';
+
+ if (!$result) {
+ $out .= $r->p('Yadis code unavailable; could not test fetcher support.');
+ return false;
+ }
+
if (Services_Yadis_Yadis::curlPresent()) {
// XXX: actually fetch a URL.
$out .= $r->p('This PHP installation has support for libcurl. Good.');