<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -314,6 +314,9 @@ class Net_Gearman_Worker
         if (isset($resp['data']['arg']) &amp;&amp; 
             Net_Gearman_Connection::stringLength($resp['data']['arg'])) {
             $arg = json_decode($resp['data']['arg'], true);
+            if($arg === null){
+                $arg = $resp['data']['arg'];
+            }
         }
 
         $job = Net_Gearman_Job::factory($name, $socket, $handle);</diff>
      <filename>Net/Gearman/Worker.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>87f0a7b43f6fd579c88c9bf49a150d61cb43a9ba</id>
    </parent>
  </parents>
  <author>
    <name>Brian Moon</name>
    <email>brianm@macdough.(none)</email>
  </author>
  <url>http://github.com/lenn0x/net_gearman/commit/ae98d0b6586bf9bee8b4be3ad6364ce57cae95ac</url>
  <id>ae98d0b6586bf9bee8b4be3ad6364ce57cae95ac</id>
  <committed-date>2009-04-21T11:00:37-07:00</committed-date>
  <authored-date>2009-04-21T10:37:33-07:00</authored-date>
  <message>PHP 5.2.9 changed json_decode to return NULL if a string was not technically valid JSON.  So, if we get NULL from the decode, assume it is a bare string and set the args to the bare string

Signed-off-by: Chris Goffinet &lt;cg@chrisgoffinet.com&gt;</message>
  <tree>ac94a0dcb6ffd1e8ad06828a7b5b50856359d7f1</tree>
  <committer>
    <name>Chris Goffinet</name>
    <email>cg@chrisgoffinet.com</email>
  </committer>
</commit>
