X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=gaas%2Flib%2FgaasdClient.php;h=3a990e892a7724a1fe5580bf842e7a5a8e7d7d1c;hp=4226368d34f7da32b39145e447f7dc15ac3fed71;hb=40dc7f97626a703a943e27cdcd1a3d6a332a8f27;hpb=01b5d6290a0d704099cef17071c1fc50b3049bee diff --git a/gaas/lib/gaasdClient.php b/gaas/lib/gaasdClient.php index 4226368..3a990e8 100644 --- a/gaas/lib/gaasdClient.php +++ b/gaas/lib/gaasdClient.php @@ -51,6 +51,7 @@ class GAASClient { // first check we got something that makes sense if(preg_match("/^AS:.*:EOD/", $recvd) < 1) { socket_close($socket); + echo "Returned data is not in right format\n"; // we have a problem jim return false; } @@ -60,6 +61,7 @@ class GAASClient { $component = unserialize(base64_decode($xps[1])); if($component["type"] != $message_type) { + echo "Message type was not the same as original message\n"; // we have a problem jim socket_close($socket); return false; @@ -85,7 +87,7 @@ class GAASClient { //echo "real function is $function_send, $function_recv\n"; if(function_exists($function_send) && function_exists($function_recv)) { - $function_recv($this->sendReceive($st_defined, $function_send($params))); + return $function_recv($this->sendReceive($st_defined, $function_send($params))); } else { error_log("Function, $function does not exist!"); }