From:             kamatoz at gmail dot com
Operating system: any
PHP version:      Irrelevant
Package:          PDO related
Bug Type:         Feature/Change Request
Bug description:impossible to load extension via pdo_sqlite

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


-- 
Edit bug report at https://bugs.php.net/bug.php?id=64810&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64810&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64810&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64810&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64810&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64810&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64810&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64810&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64810&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64810&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64810&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64810&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64810&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64810&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64810&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64810&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64810&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64810&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64810&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64810&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64810&r=mysqlcfg

Reply via email to