title: How can I fix warning JSON_BIGINT_AS_STRING not implemented?
body: <p>Looking on my Apache error log file, I checked this warning: </p>
  
  <pre><code>PHP Warning:  json_decode(): option JSON_BIGINT_AS_STRING not implemented in /../codebird.php on line 2517
  </code></pre>
  
  <p>It's referred to a script that I use to auto-post on Twitter from my blog.</p>
  
  <p>This is the guilty function:</p>
  
  <pre><code>  protected function _parseApiReply($reply)
    {
      $need_array = $this-&gt;_return_format === CODEBIRD_RETURNFORMAT_ARRAY;
      if ($reply === '[]') {
        switch ($this-&gt;_return_format) {
          case CODEBIRD_RETURNFORMAT_ARRAY:
            return [];
          case CODEBIRD_RETURNFORMAT_JSON:
            return '{}';
          case CODEBIRD_RETURNFORMAT_OBJECT:
            return new \stdClass;
        }
      }
      if (! $parsed = json_decode($reply, $need_array, 512, JSON_BIGINT_AS_STRING)) {
        if ($reply) {
          // assume query format
          $reply = explode('&amp;', $reply);
          foreach ($reply as $element) {
            if (stristr($element, '=')) {
              list($key, $value) = explode('=', $element, 2);
              $parsed[$key] = $value;
            } else {
              $parsed['message'] = $element;
            }
          }
        }
        $reply = json_encode($parsed);
      }
      switch ($this-&gt;_return_format) {
        case CODEBIRD_RETURNFORMAT_ARRAY:
          return $parsed;
        case CODEBIRD_RETURNFORMAT_JSON:
          return $reply;
        case CODEBIRD_RETURNFORMAT_OBJECT:
          return (object) $parsed;
      }
      return $parsed;
    }
  }
  </code></pre>
  
  <p>Why if the title is too long I'm getting this warning and it doesn't post on Twitter?  </p>
  
  <p>P.S.</p>
  
  <p>I have installed <code>PHP 5.5.9</code> but the problem still the same.</p>