svn: /web/doc-editor/trunk/php/ SvnClient.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Tue, 01 Dec 2009 11:57:15 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=291549

Log:
Warn if svn.php.net is down

Changed paths:
    U   web/doc-editor/trunk/php/SvnClient.php

Modified: web/doc-editor/trunk/php/SvnClient.php
===================================================================
--- web/doc-editor/trunk/php/SvnClient.php	2009-12-01 11:56:32 UTC (rev 291548)
+++ web/doc-editor/trunk/php/SvnClient.php	2009-12-01 11:57:15 UTC (rev 291549)
@@ -54,8 +54,10 @@

 ', $uri, $host);

-        $h = fsockopen($host, $port);
+        $h = @fsockopen($host, $port);

+        if( !$h ) { return 'svn.php.net seems to be down !'; }
+
         $matches = array();
         $trial_count = 0;
         do {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.