| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull Requests
Pull requests: 
HistoryAllCommentsChangesGit/SVN commits             
             [2013-10-23 18:14 UTC] jwhite at tdc-group dot com
  [2014-09-17 14:55 UTC] benjamin dot morel at gmail dot com
  [2016-05-18 21:23 UTC] bugs dot php dot net at businger dot ch
  [2016-08-29 14:31 UTC] cmb@php.net
 
-Package: PDO related
+Package: PDO SQLite
  [2018-04-25 04:52 UTC] zach at zachlanich dot com
  [2018-07-05 02:03 UTC] cwt137 at gmail dot com
  [2018-10-30 14:50 UTC] cwt137 at gmail dot com
  [2018-12-21 15:20 UTC] cmb@php.net
  [2020-05-28 07:31 UTC] arnoutboks at gmail dot com
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 11:00:01 2025 UTC | 
Description: ------------ Currently if you use php pdo_sqlite it's impossible to load an sqlite extension to sqlite. It's good practice to turn off this opportunity by default, but it should be possible to override the behavior via config file Test script: --------------- $pdo = new PDO('sqlite:test.db','','',[PDO::ATTR_ERRMODE=> PDO::ERRMODE_EXCEPTION]); try { $result = $pdo->query('select load_extension("libspatialite.so.3")'); } catch (PDOException $e) { echo "Failed to get DB handle: " . $e->getMessage() . "\n"; exit; } Expected result: ---------------- No exception should be thrown Actual result: -------------- Failed to get DB handle: SQLSTATE[HY000]: General error: 1 not authorized