[Chameleon-dev] [Bug 1678] [php_utils] server_data_manager.php still has a part that should use http client

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Thu Mar 8 14:58:21 EST 2007


http://bugzilla.maptools.org/show_bug.cgi?id=1678

bartvde at osgis.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From bartvde at osgis.nl  2007-03-08 14:58 -------
Fixed in CVS head of php_utils.

This is the diff for reference:

--- server_data_manager.php	2 May 2006 18:57:23 -0000	1.39
+++ server_data_manager.php	8 Mar 2007 19:56:40 -0000
@@ -1926,17 +1926,17 @@
         @set_time_limit( $this->nMaxExecutionTime );
 
 
-        // open a pointer to the input file
-        if (!($fpIn = fopen($szOnlineResource, "r")))
+        include_once(dirname(__FILE__)."/../http/HTTPClient.php");
+        $oHTTPClient = new HTTPClient("", $this->nMaxExecutionTime);
+        if ( $oHTTPClient->doGET($szOnlineResource) )
         {
-            // test failed
-            $bReturn = false;
+          // test succeeded
+          $bReturn = true;
         }
         else
         {
-            // test succeeded
-            $bReturn = true;
-            fclose( $fpIn );
+          // test failed
+          $bReturn = false;
         }
 
         // log function end




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the Chameleon-dev mailing list