title: Install sqlite for php5.6
body: <p>The <a href="http://de2.php.net/manual/en/function.sqlite-open.php" rel="nofollow noreferrer">php manpage</a> sais, you have to install sqlite via PECL, so I tried the latest version:</p>
  
  <pre><code>cd /tmp/
  wget https://pecl.php.net/get/SQLite-1.0.3.tgz
  tar xvzf SQLite-1.0.3.tgz
  cd SQLite-1.0.3/
  phpize
  </code></pre>
  
  <p>But I cannot install php_sqlite on Ubuntu 15.10 like this. I get an error at <code>make</code> :</p>
  
  <pre><code>/tmp/SQLite-1.0.3/sqlite.c: In function 'zif_sqlite_open':
  /usr/include/php5/main/php_globals.h:32:29: error: 'struct _php_core_globals' has no member named 'safe_mode'
  </code></pre>
  
  <p>And many more, so is there an actual version working on PHP 5.6?</p>
  
  <p>I want to run an old program that uses the function <code>sqlite_open</code></p>
  
  <p>And installing the package didn't make it work:</p>
  
  <pre><code>apt-get install php5-sqlite
  </code></pre>
  
  <p>So maybe there's a good wrapper library around that uses <a href="http://php.net/manual/en/sqlite3.open.php" rel="nofollow noreferrer">SQLite3::open</a> to simulate the old functions?</p>