title: SQLite3::exec failed
body: <p>Below is my code. <code>$sqlite-&gt;exec</code> cannot return true. I used <code>echo</code> to output the insert statement above this line of code. The statement is correct, and it can be inserted normally when executed directly on the command line. But using <code>$sqlite-&gt;exec</code> does not work.</p>
  
  <pre><code>static function addContent($ja, $tc, $sc, $comment) {
      $ja = trim($ja);
      $tc = trim($tc);
      $sc = trim($sc);
  
      $sqlite = new SQLite3('/home/bitnami/htdocs/converter');
      if ($sqlite) {
          $query = &quot;insert into hanzi values (null, '$ja', '$tc', '$sc', '$comment')&quot;;
          echo $query . '&lt;br /&gt;';
          $result = $sqlite-&gt;exec($query);
          if ($result) {echo '$result is OK';} else {echo '$result os not OK';}
      }
      return $result;
  }
  </code></pre>
  <p>There is no problem with the database connection, that is, the result of <code>$sqlite = new SQLite3('/home/bitnami/htdocs/converter');</code> is correct, otherwise the <code>echo</code> below could not be executed.</p>
  <p>This code was working fine on a Cent OS server before, and now I moved it to a LAMP environment in AWS Lightsail.</p>
  <p>Other parts of the code that use the select statement <code>$sqlite-&gt;query($query)</code> can be executed.</p>
  <p>I used .log to collect the log, but there is no record of execution failure in the log.</p>