title: PHP Startup: Unable to load dynamic library json.so wrong architecture
body: <p>I'm using laravel and thus require the command line to run artisan commands.</p>
  <p>When doing so, php gives me the following errors:</p>
  <pre><code>&quot;Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/json.so' - dlopen(/usr/local/zend/lib/php_extensions/json.so, 9): no suitable image found.  Did find:
      /usr/local/zend/lib/php_extensions/json.so: mach-o, but wrong architecture in Unknown on line 0&quot;
  </code></pre>
  <p>When checking &quot;which php&quot; it points to the right version (of zend server) as I've added that to my path variable.</p>
  <pre><code>which php
  /usr/local/zend/bin/php
  </code></pre>
  <p>Any idea what can be done to solve this?</p>