title: laravel/php response different json data with extra double quotes in different environments
body: <p>in my mac</p>
  
  <pre><code>$result = DB::select("select count(*) as count from table where id=1");
  return Response::json($result[0]-&gt;count);
  </code></pre>
  
  <p>I got 0 in js </p>
  
  <pre><code>// PHP 5.4.24  
  0
  </code></pre>
  
  <p>but when I published my codes into Centos, I got "0" even ""0"" in js</p>
  
  <pre><code>// PHP 5.5.14
  "0" //(sometimes ""0"")
  </code></pre>
  
  <p>They are totally same codes. What's wrong?</p>
  
  <hr>
  
  <p><strong>Edit:</strong></p>
  
  <p>I found another problem I think it's related</p>
  
  <pre><code>// mac, PHP 5.4.24, Lavavel 4.2
  Auth::user()-&gt;is_admin === 1  // true
  
  // centos, PHP 5.5.14, Lavavel 4.2
  Auth::user()-&gt;is_admin === 1  // false
  Auth::user()-&gt;is_admin == 1  // true
  </code></pre>
  
  <p>column type of is_admin is int(11)</p>